Jump to content

multiple update query help


ag3nt42

Recommended Posts

Hello all,

 

I'm trying to write out a multiple UPDATE query to update mutliple rows based on different situations kinda..

 

let me show u what i mean.

 

I have 7 cols "Sun,Mon,Tues,Wens,Thurs,Fri,Sat"

 

I don't want to have to write out 7 update querys..

 

So I am wanting to do a multi UPDATE query I'm guessing looks somthing like this

 

UPDATE [dataTable] SET Sun=Open, Mon=Open, Tues=Open, Wens=Open, Thurs=Open, Fri=Open, Sat=Open WHERE id=1

 

is this useable syntax or ? I duno.

Link to comment
https://forums.phpfreaks.com/topic/111689-multiple-update-query-help/
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.