update sql
snippet in sql

sql update query

user4613

--update query example
 UPDATE table_name
 SET column1 = value1, column2 = value2, ...
 WHERE condition; 

sql update

user6811

UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition; 

sql update from different table

user5751

# SQL Server
UPDATE
    Sales_Import
SET
    Sales_Import.AccountNumber = RAN.AccountNumber
FROM
    Sales_Import SI
INNER JOIN
    RetrieveAccountNumber RAN
ON 
    SI.LeadID = RAN.LeadID;
# MySQL & MariaDB
UPDATE
    Sales_Import SI,
    RetrieveAccountNumber RAN
SET
    SI.AccountNumber = RAN.AccountNumber
WHERE
    SI.LeadID = RAN.LeadID;

update sql

user1979


 UPDATE table_name

 SET column1 = value1, column2 = value2, ...

 WHERE condition; 

update column sql server

user2766

UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;

sql update record

user853

UPDATE table_name
SET column1 = value1, column2 = value2...., columnN = valueN
WHERE [condition];