|
|
Archives of the TeradataForum
Message Posted: Fri, 10 Nov 2006 @ 23:34:39 GMT
Subj: | | Re: Dropping a table from sql assistant |
|
From: | | Michael Larkins |
Randall:
Do you come from Oracle by any chance?
In Teradata it is much, much, much faster to delete all of the rows (in Teradata mode - single statement transaction = fastest thing that
Teradata does) instead of dropping and adding a table (you mentioned DROP and CREATE). In Teradata, deleting all rows is the equivalent of a
truncate in Oracle. So, don't drop a table to delete the rows - too slow and takes locks on the data dictionary. Don't do it!!! Always,
always, always delete all of the rows.
Regards,
Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor
| |