Top "Sql-delete" questions

The SQL DELETE statement allows you to delete a single row or multiple rows from a SQL table.

SQL Server 2000 Delete Top (1000)

I have a large SQL Server database with a table at about 45 million records. I am archiving this table, and …

sql sql-server optimization sql-delete
MySQL: how to drop multiple tables using single query?

I want to drop multiple tables with ease without actually listing the table names in the drop query and the …

mysql sql sql-delete multiple-tables
DELETE SQL with correlated subquery for table with 42 million rows?

I have a table cats with 42,795,120 rows. Apparently this is a lot of rows. So when I do: /* owner_cats …

sql sql-server sql-delete correlated-subquery
Mysql delete statement with limit

I'm trying to delete rows from a table but I get an error. DELETE FROM `chat_messages` ORDER BY `timestamp` …

mysql sql-order-by limit sql-delete
DELETE FROM HAVING COUNT(*) in MySQL

Ok so there are couple posts here already on this and fewer still out on the web. I've literally tried …

mysql count sql-delete having
How to get the number of deleted rows in PostgreSQL?

I am looking for a way to return the number of rows affected by a DELETE clause in PostgreSQL. The …

postgresql sql-delete delete-row rowcount
DELETE data from a table, joining through two tables

I'm working with some rather sensitive data, so I want to be ABSOLUTELY sure I am doing it properly. I …

mysql sql sql-delete
Get number of records deleted sql

I want to get the row count of how many records have been deleted. The below query returns the number …

sql oracle sql-delete rowcount
Deleting from multiple tables with foreign constraints

I am trying to delete from multiple tables. Here's what my tables look like A_has_B ---- B ---- …

mysql sql foreign-keys sql-delete
Difference between DELETE and DELETE FROM in SQL?

Is there one? I am researching some stored procedures, and in one place I found the following line: DELETE BI_…

sql tsql sql-delete