简体   繁体   中英

Update multiple table column values using single query in SQL?

I have two tables like Temp1 and Temp2

The Table Temp1 have id and Col1 fields and The Table Temp2 have id and Col2 fields

I need to update the two table fields Col1 and Col2 using single query in SQL.

Can anyone help me??????

You can't update 2 tables in single SQL. Use stored procedure or transaction

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM