Jump to content

Update two rows with one query


arifsor

Recommended Posts

i have table with following schema

 

----------------------------

ID    |  NAME      | SEQ 

----------------------------

10    |  APPLE      |  1

11    |  BIN        |  2

12    |  CAT        |  3

-----------------------------

 

i want to update row 12 SEQ from 3 to 1 and

row 10 SEQ from to 1 to 3 with one query.

 

is this possible with one query/

Link to comment
https://forums.phpfreaks.com/topic/40880-update-two-rows-with-one-query/
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.