troubleshooting Question

sql update multiple values from sub-request

Avatar of terencepires
terencepires asked on
2 Comments1 Solution484 ViewsLast Modified:
hi there !

i have a problem finding the syntax for an sql update of multiple values at the same time from a select sub-request on another table.

Here is what i mean :

field1, field2, field3, field4 from table 1
need to be updated by

new_field1, new_field2, new_field3, new_field4 from table 2

i only know how to update 1 value at a time, and straight from typing it in the sql code...

Could somebody help ?


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros