About 205,000 results
Open links in new tab
  1. oracle - truncate table with foreign keys - Database Administrators ...

    Sep 27, 2018 · Oracle 12c introduced TRUNCATE ... CASCADE: TRUNCATE TABLE CASCADE If you specify CASCADE, then Oracle Database truncates all child tables that reference table …

  2. Truncate with where clause - Database Administrators Stack …

    Apr 12, 2017 · Can I use truncate command with a where clause? I need to remove specific rows from several tables. How can I delete specific data from the entire database? SELECT …

  3. Rolling back truncate table - Database Administrators Stack …

    Nov 26, 2019 · The insertion of records from the RAW table into the dbo table got rolled back; BUT The truncation of the RAW table did not roll back. No, there was no rollback at all, and …

  4. Truncating a table with a foreign key constraint - SQL Server

    Sep 29, 2018 · Doesn’t matter if the table is empty. You need to either drop and re-create the foreign key constraint or just perform a delete instead of a truncate. How often are you really …

  5. What can cause TRUNCATE TABLE to take a really long time?

    Using TRUNCATE TABLE on an InnoDB table requires a full table lock because TRUNCATE TABLE is DDL (Data Definition Language) not DML (Data Manipulation). Doing DELETE …

  6. Truncate tables with dependent foreign key constraints

    You cannot truncate a table that has foreign key constraints. I would script your truncate statement to drop the constraints, then truncate the table, and then re-create the constraints.

  7. DELETE vs TRUNCATE - Database Administrators Stack Exchange

    Dec 13, 2012 · Truncate requires "alter table" permission (in the sense that truncate is plug in replacement for delete).

  8. Truncating MySQL table and insert newly records on daily basis

    Mar 21, 2020 · I have my database in which I have to store new data on daily basis fetching from API. The problem is that I have to truncate table everyday and then insert newly fetched …

  9. Reuse of space after TRUNCATE TABLE by other tables

    Sep 19, 2023 · If I do truncate my table, will the growth of other tables re-use that space freed up, and hence save disk space in the long term? Yup, which is one reason why SHRINK ing is …

  10. SQL Permission to Truncate Table - Database Administrators Stack …

    Feb 28, 2018 · How Do I give permission for user to Truncate all tables in database? The minimum permission required is 'ALTER on table_name' per articles below. With this, how do I …