“SQL Update Anweisung” Code-Antworten

SQL -Update von SELECT

UPDATE YourTable 
SET Col1 = OtherTable.Col1, 
    Col2 = OtherTable.Col2 
FROM (
    SELECT ID, Col1, Col2 
    FROM other_table) AS OtherTable
WHERE 
    OtherTable.ID = YourTable.ID
Ankur

SQL Update Anweisung

UPDATE Customers
SET first_name = 'Johnny'
WHERE customer_id = 1;
SAMER SAEID

Aktualisieren Sie den Wert SQL

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

SQL -Update

UPDATE Table_name
-- The desired value
SET Column_name = desired_value
-- Any value, of the item, of which one value you want to change
WHERE Column_name = value
ASP

SQL -Update

UPDATE sakila.actor  # table to update
SET first_name = "Bryan", last_name = "Besmond"   # fields to be added/updated
WHERE actor_id = 201;   # boolean condition
Scary Salamander

Aktualisieren Sie die Abfrage in SQL

UPDATE table_name
 SET column_name1 = value1, column_name2 = value2
 WHERE condition; 
Purple Team

Ähnliche Antworten wie “SQL Update Anweisung”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen