how to change the value of a table in sql
UPDATE employees
SET
address = '1300 Carter St',
city = 'San Jose',
postalcode = 95125,
region = 'CA'
WHERE
employeeID = 3;
how to change the value of a table in sql
UPDATE employees
SET
address = '1300 Carter St',
city = 'San Jose',
postalcode = 95125,
region = 'CA'
WHERE
employeeID = 3;
sql update multiple tables
/*You can't update multiple tables in one statement,
however, you can use a transaction to make sure that
two UPDATE statements are treated atomically.
You can also batch them to avoid a round trip.*/
BEGIN TRANSACTION;
UPDATE Table1
SET Table1.LastName = 'DR. XXXXXX'
FROM Table1 T1, Table2 T2
WHERE T1.id = T2.id
and T1.id = '011008';
UPDATE Table2
SET Table2.WAprrs = 'start,stop'
FROM Table1 T1, Table2 T2
WHERE T1.id = T2.id
and T1.id = '011008';
COMMIT;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us