Answers for "delete all row sql server"

SQL
2

sql server delete row

DELETE FROM my_table WHERE id = 3;
DELETE FROM my_table;                   -- All rows
DELETE TOP 10 FROM my_table;            -- First 10 rows
DELETE TOP 10 PERCENT FROM my_table;    -- First 10% of rows
Posted by: Guest on April-17-2021
2

delete all rows from table sql

-- Quick, no possible rollback
TRUNCATE TABLE my_table;
-- With rollback
DELETE FROM my_table;
COMMIT;
Posted by: Guest on January-23-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language