“Eliminar de donde SQL” Código de respuesta

SQL Eliminar

DELETE FROM table_name WHERE condition;
-- 			Ex.
DELETE FROM Customers WHERE CustomerName='Mustafa Mbari';
Mustafa Mbari

Eliminar SQL

DELETE FROM table_name;
Spotless Sandpiper

SQL Eliminar en dónde

-- Deletes all records where `columnName` matches the values in brackets.
DELETE FROM tableName WHERE columnName IN ('val1', 'val2', 'val3');
SmokeFrog

SQL Eliminar

DELETE FROM computer WHERE name = '{}'
Curious Cockroach

consulta de eliminación de SQL

CREATE PROC dbo.DeleteLotsOfStuff
(@id int)
AS

Begin

DELETE FROM login WHERE klantid = @id
DELETE FROM klantGegevens WHERE klantid = @id
DELETE FROM orderGegevens WHERE loginNr = @id

End
Witty Willet

Eliminar de donde SQL

DELETE FROM my_table;		-- all rows
DELETE FROM my_table WHERE my_id = 12345;
DELETE FROM my_table WHERE my_id IN (SELECT id2 FROM my_table2);
VasteMonde

Respuestas similares a “Eliminar de donde SQL”

Preguntas similares a “Eliminar de donde SQL”

Más respuestas relacionadas con “Eliminar de donde SQL” en Sql

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código