About 3,190,000 results
Open links in new tab
  1. SQL DELETE Statement - W3Schools

    It is possible to delete all rows in a table without deleting the table. This means that the table structure, attributes, and indexes will be intact: The following SQL statement deletes all rows in the "Customers" table, without deleting the table: To delete the table completely, use the DROP TABLE statement: Remove the Customers table: Exercise?

  2. sql - delete all from table - Stack Overflow

    Is a DDL(Data Definition Language), you can delete all data and clean identity. If you want to use this, you need DDL privileges in table. DDL statements example: CREATE, ALTER, DROP, TRUNCATE, etc.

  3. Delete all data in SQL Server database - Stack Overflow

    Aug 23, 2014 · SQLMenace's solution worked for me with a slight tweak to how data is deleted - DELETE FROM instead of TRUNCATE. -- disable referential integrity EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL' GO …

  4. t sql - Delete all the records - Stack Overflow

    Mar 18, 2011 · Delete rows in the Results pane if you want to delete records in the database. If you want to delete all of the rows you can use a Delete query.

  5. How to Delete all Records from a Table in SQL - w3resource

    Mar 8, 2025 · Learn how to use the SQL DELETE statement without a WHERE clause to remove all records from a table while keeping its structure intact.

  6. How To Delete All Records From A Table In SQL Server

    Oct 7, 2024 · You can use the Delete table/Truncate table statement to delete the records from a table in the SQL server. For faster operation, you can use the Truncate table statement. Refer to the above information for the complete steps.

  7. MySQL DELETE Statement - W3Schools

    It is possible to delete all rows in a table without deleting the table. This means that the table structure, attributes, and indexes will be intact: The following SQL statement deletes all rows in the "Customers" table, without deleting the table:

  8. DELETE (Transact-SQL) - SQL Server | Microsoft Learn

    Jan 29, 2025 · Removes one or more rows from a table or view in SQL Server. Transact-SQL syntax conventions. DELETE . [ TOP ( expression ) [ PERCENT ] ] . [ FROM ] . { { table_alias . | <object> . | rowset_function_limited . [ WITH ( table_hint_limited [ ...n ] ) ] } . | @table_variable . [ <OUTPUT Clause> ] .

  9. A Guide to the SQL DELETE Statement - Codecademy

    Mar 19, 2025 · This SQL query deletes all rows from the specified table but does not remove the table itself. While this might be useful in some cases, such as resetting a table before importing new data, it also comes with risks—executing this statement without proper checks can result in the loss of all data in the table.

  10. SQL DELETE Statement Examples and Best Practices

    Jan 13, 2025 · In this SQL tutorial, I demonstrate the use of the SQL DELETE statement to remove 1 row, a group of rows, or all the existing records from a Microsoft SQL Server table. Before diving in too deep, understand that a SQL DELETE operation is dangerous.