MySQL Forums
Forum List  »  Newbie

Help me..I'm going mad.
Posted by: Pippo Franco
Date: June 23, 2005 09:07AM

For first thing: sorry if this isn't the right place where talk about my mysql problems...

This query:

SELECT id
FROM gham_base
WHERE (
id
)
IN (

SELECT a.id
FROM gham_base AS a, gham_stringhe AS b
WHERE a.id = b.originale
AND b.lingua = '24'
)
LIMIT 0 , 30

give me this error:

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT a.id


CREATE TABLE `gham_base` (
`id` int(11) NOT NULL auto_increment,
`campo` varchar(255) NOT NULL default '',
`stringato` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=429 ;

CREATE TABLE `gham_stringhe` (
`id` int(11) NOT NULL auto_increment,
`lingua` varchar(255) NOT NULL default '',
`originale` varchar(255) NOT NULL default '',
`traduzione` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=3056 ;

I don't understand why!! Please help me (mysql version 4.0.24-standard)

Options: ReplyQuote


Subject
Written By
Posted
Help me..I'm going mad.
June 23, 2005 09:07AM
June 23, 2005 09:17AM
June 23, 2005 12:27PM
June 24, 2005 08:00AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.