Jump to content

UPDATE from field in other table


lemarsu

Recommended Posts

I have written some SQL but it would not work under mysql (in the office DB2 and oracle are ok with this kind of sql)

 

the following sql is what I am trying to run :

 

 

UPDATE tableA, tableB

SET tableA.usergroupid=8

WHERE 

 tableB.userid= tableA.userid AND

 tableB.country= \'United Kingdom\' AND

 tableA.usergroupid=\'5\'



 

 

Can anyone please help....

 

Thanks

LeMarsu

Link to comment
https://forums.phpfreaks.com/topic/311-update-from-field-in-other-table/
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.