Jump to content

Multiple update syntax


leedude

Recommended Posts

is there a way i can selectively update columns like i can with the insert command:

update table1 set (page,title,dsc) = (1,"Page 1","This is Page 1") where id = 4;

(this is excluding the id column from the update).
This produces an error, is there a way i can do this like i can insert data:?

insert into table1 (page,title,dsc) values (1,"Page 1","This is Page 1")

plz help.
Link to comment
https://forums.phpfreaks.com/topic/16812-multiple-update-syntax/
Share on other sites

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.