> 2 - Your INSERT statement is using a SELECT statement to
> chose VALUES to be inserted into the table. Since MySQL
> does not support sub-SELECT statements, the second part
> of your query is not returning any values, resulting in
> the NULL value error stated above.
MySQL does support INSERT ... SELECT, as documented at
http://www.mysql.com/doc/I/N/INSERT_SELECT.html. What MySQL does not support
is something like SELECT * FROM table WHERE id NOT IN (SELECT id FROM
anothertable);
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php