DELETE can remove rows from tables that have referential-integrity constraints, as long as the operation does not violate the foreign-key relationship or a configured referential action, such as ON DELETE CASCADE, handles dependent rows. TRUNCATE is generally faster than DELETE when removing all rows from a large table.
Community Discussion