RE: [PHP] quicky sql question
| From: | Jason Murray | Date: | Thu, 21 Dec 2000 04:28:33 +0000 |
| Subject: | RE: [PHP] quicky sql question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-31360@lists.php.net to get a copy of this message | ||
> What is wrong with this SQL query
>
> INSERT INTO com_site SET (UID='' , ACTIVE='1' , TITLE='test')
It's completely malformed, is whats wrong :)
INSERT INTO com_site (UID, ACTIVE, TITLE)
VALUES ('', '1', 'test');
Looks like your original statement is mixing INSERT and UPDATE syntax.
Jason
--
Jason Murray
jasonm@melbourneit.com.au
Web Design Team, Melbourne IT
Fetch the comfy chair!