John,
The SQL for it will look something like this: "DELETE TABLE_1.* FROM
TABLE_1;". That gets rid of every row in the table. It will fail (as
others here have said) if the errors you are getting are due to constraints
in place on the table. If you wanted a script that really would dump a
million rows without complaining about constraint violations you would have
to include a number of "ALTER TABLE_2 DROP CONSTRAINT . . . " sorts of
statements to get rid of the constraints first, then delete your rows.
"John Baker" <Ba******@Verizon.net> wrote in message
news:b7********************************@4ax.com...
Set up a select query which selects the whole table (i.e with no criteria)
and then change
it to a delete query! Then run it!
Best
John Baker
ja***@cd-worx.com (ja***@cd-worx.com) wrote:
Hi,
I have a table with 1 million rows that I need to delete.
Is there a way to delete them quickly considering I get errors if I
try to select them all and then hit delete?
What I'm looking for is some sort of "delete all records" menu option.
Thanks