Hi,
I want to update two fields in a table but I want to set the values using select statements?
UPDATE table SET column1=(SELECT a from x where b =table.id), column2=(SELECT z from x where b =table.id)
Is this possible?
Hi,
I want to update two fields in a table but I want to set the values using select statements?
UPDATE table SET column1=(SELECT a from x where b =table.id), column2=(SELECT z from x where b =table.id)
Is this possible?
Have this sorted.
I need to use Where Exists at the end of the statement
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks