Hi - I'm having problems with case-sensitivity in MySQL FULLTEXT searches.
I've just followed the FULLTEXT example in the MySQL doco at http://dev.mysql.com/doc/refman/5.1/en/fulltext-boolean.html . I'll post it here for ease of reference ...
CREATE TABLE articles (
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
title VARCHAR(20...
When I create a view I am basically like making a new table that will automatically be transacted upon when data in one of the tables it joins changes?
Also why can't I use subqueries in my view????
...
look at this table please
table
|id| |name| |order|
i must get the rows, where name = something and order = somevalue
so i write
select `id` from `table` where `name` = 'something' and `order` = 'somevalue'
but depend on php logic, sometimes i need to get all rows, where name = somethimg, independently of order value. i don't w...
I need to retreive a list of posts that have (at least) one attachment that belongs to a category in WordPress.
The relation between attachments and categories I made by myself using the WordPress default method.
Here's the query that i'm running right now:
SELECT post.*
FROM `bma_posts` AS post
WHERE
EXISTS (
SELECT 1
...
I have set up an Apache server on mandriva linux 2010.1. But the problem is whenever I'm trying to connect with the database, it's giving me the following error:
Error:Database error: SQLSTATE[28000]
[1045] Access denied for user
'root'@'myhostname' (using password:
YES)
Can anyone help in this regard please?
Thanks.
...
Hello,
I'm having a serious issue with MySQL and Entity Framework 4.0. I have dropped a Table onto the EF Designer surface, and everything seems OK. However, when I perform a query in the following fashion:
using(entityContext dc = new entityContext()) {
int numRows = dc.myTable.Count();
}
The query that is generated looks someth...
Hi,
I'm trying to do a simple transaction in MySQL
delimiter go
start transaction;
BEGIN
DECLARE EXIT HANDLER FOR SQLEXCEPTION, SQLWARNING, NOT FOUND ROLLBACK;
INSERT INTO jext_categories (Name) VALUES ('asdfas');
INSERT INTO jext_categories (Name) VALUES ('asdfas2');
END;
commit;
SELECT * FROM jext_c...
I use MySQL and it gives no meaningful error messages beyond "syntax wrong close to something or other". This is in sharp contrast to the sort of nice, clear error messages we are used to getting from java compiler and similar. So, are there RDBMS or sql validation tools that provide clearer, meaningful error messages?
...
Just started using mysqli. If I'm working with small data sets on small websites (traffic-wise), do I really need to use these all the time?
$result->close();
$mysqli->close();
also, for someone doing custom php & mysql work, without a framework, is mysqli the general preferred way of interacting with mysql?
...
How do I find out which user entered the most articles and then count how many articles that user entered using PHP & MySQL.
Here is my MySQL tables.
CREATE TABLE users_articles (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
user_id INT UNSIGNED NOT NULL,
title TEXT NOT NULL,
acontent LONGTEXT NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE us...
Hi, i'm trying to migrate from sqlexpress to mysql, and am having an issue with the DateTimeOFfset(7) field in one of my tables. MySQL is refusing to handle it.. Is there a way to get around this?
...
I'm trying to display the username of the person who has submitted the most articles but I don't know how to do it using MySQL & PHP, can someone help me?
Here is the MySQL code.
CREATE TABLE users (
user_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
username VARCHAR(255) DEFAULT NULL,
pass CHAR(40) NOT NULL,
PRIMARY KEY (user_id)
);
CREAT...
What is the mysql equi of wm_concat?
...
I need to insert mutiple data in the field and then to retrieve it as an array.
For example I need to insert "99999" into table item_details , field item_number, and the following data into field bidders associated with item_number :
userx
usery
userz
Can you please let me know what sql query should I use to insert the info and w...
Im looking for a tool that can watch database(mysql and oracle) for changes.
When someone inserts or updates something in any(or chosen) table i want to get to know about it. It could be very useful for working with others people code that do some magic in database.
I know that it can be done using triggers (see this question), but im ...
Hi. In a MySQL database I have documents of different type: some have text content, meta keys, descriptions, others have code, SKU number, size and brand name and so on. The problem is, I have to search something in all of these documents and then display a single page, where the results will be grouped by the document type, such as help...
hello
I'm new to PHP and I recently started learning Zend Framework. What DAL are you using? Do you think that Zend_Db_* can do the magic? I need it mainly for MySql db. Does it have any limitations and can I use it in big project without any problems because I don't want to go the wrong way.
10x
...
I'm using the log queries not using index but it logs all that use indexes but just more advanced or using IFs.
Is there a parser or a program out there that can analyze the log and give me a literal output of saying "table.column should be a index"
Thanks
...
OK, I'm flummoxed.
I'm trying to execute a query on a database (locally) and I keep getting a connection reset error. I've been using the method below in a generic DAO class to build a query string and pass to Zend_Db API.
public function insert($params) {
$loop = false;
$keys = $values = '';
foreach($params as $k => $v){
...
Please recommend Secure, customizeable, open-source chat on PHP/JavaScript for all popular browsers.
...