Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

update 2 columns in table at same time

SOLVED
Go to solution
Ratzie
Super Advisor

update 2 columns in table at same time

can this be done?
UPDATE table1 SET CUSTOMER = 'Customer1' set ph_num = '1234567' where address = '123 address'
2 REPLIES
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: update 2 columns in table at same time

Yes, with the proper syntax.

UPDATE table1
SET customer = 'Customer 1', ph_num = '1234567'
WHERE address = '123 address';
If it ain't broke, I can fix that.
Ratzie
Super Advisor

Re: update 2 columns in table at same time

wrong syntax!