• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

why wont this sql query work?

Red Squirrel

No Lifer
Using mysql/php and this query refuses to work. I really can't see whats wrong with it.

UPDATE contentdb_recipeentry set rrare=1, set ramt=525 WHERE raid=10 AND ring=6 LIMIT 1;

The error is:

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 'set ramt=525 WHERE raid=10 AND ring=6 LIMIT 1' at line 1


The schema of that table is as follows:


CREATE TABLE `contentdb_recipeentry` (
`raid` bigint(20) NOT NULL,
`ring` bigint(20) NOT NULL,
`rrare` tinyint(4) NOT NULL,
`ramt` bigint(20) NOT NULL,
KEY `raid` (`raid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
Only one SET keyword is needed.

UPDATE contentdb_recipeentry set rrare=1, ramt=525 WHERE raid=10 AND ring=6 LIMIT 1;
 
Back
Top