Jump to content

how would I update multiple rows in mysql


newprogram

Recommended Posts

I getting this = 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 ''USA2' AND id BETWEEN 300 AND 500' at line 1

Strings must have single quotes around them.

UPDATE table SET static = 'USA1' WHERE static = 'USA2' AND id BETWEEN 300 AND 500

my bad i got it forgot a "="

thank you

work great

I getting this = 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 ''USA2' AND id BETWEEN 300 AND 500' at line 1

Strings must have single quotes around them.

UPDATE table SET static = 'USA1' WHERE static = 'USA2' AND id BETWEEN 300 AND 500

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.