Answers for "sql update"

154

sql update query

--update query example
 UPDATE table_name
 SET column1 = value1, column2 = value2, ...
 WHERE condition;
Posted by: Guest on November-12-2019
9

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;
Posted by: Guest on March-08-2020
3

SQL Update

Mit UPATE werden  Datenwerte in der Datenbank aktualisiert. Nach Bedürfnis
können auch mehrere Datensätze auf einmal verändert werden. Mit WHERE werden
nur bestimmte Datensätze zu aktualisiert.

  UPDATE suppliers
      SET supplier_id = 50,
      supplier_name = 'Apple',
      city = 'Cupertino'
  WHERE
      supplier_name = 'Google';
Posted by: Guest on December-18-2020
0

sql update

Updates existing data in a table.
Example: Updates the mileage and serviceDue values for a vehicle with an
id of 45 in the cars table.
UPDATE cars
SET mileage = 23500, serviceDue = 0
WHERE id = 45;
Posted by: Guest on January-07-2021
0

sql update

/*Swap f to m and m to f*/
UPDATE salary
SET
    sex = CASE sex
        WHEN 'm' THEN 'f'
        ELSE 'm'
    END;
Posted by: Guest on February-07-2021
0

sql update

UPDATE computer SET cores = {}, cpu_speed = {}, ram = {}, cost = {} WHERE name = '{}'
Posted by: Guest on August-26-2021

Browse Popular Code Answers by Language