Re: Combination of SQL statements invalid in MySQL?

From: Date: Thu, 22 Nov 2001 22:27:46 +0000
Subject: Re: Combination of SQL statements invalid in MySQL?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14548@lists.php.net to get a copy of this message
At 4:08 PM +0100 11/22/01, Andy wrote:
Hi there, I am trying to do a combination of SQL statements like described in a SQL bÛok. Is it possible, that mysql does not allow this syntax?
According to the MySQL Reference Manual, subselects are not supported.
Thanx Andy Error: Occured during executing DELETE FROM test_user_interests WHERE user_id = (SELECT user_id FROM test_user WHERE user_name = 'herbert01') statement Error: 1064 You have an error in your SQL syntax near 'SELECT user_id FROM test_user WHERE user_name = 'herbert01') ' at line 3


« previous php.db (#14548) next »