This is very complex question, which is very difficult to describe. Though all RDBMS are similar but found major difference for transaction in PostgreSQL, MySQL & SQL Server.
PostgreSQL we can have truncate in transaction. As PostgreSQL can run DDL and DML in transaction. If we run truncate in transaction, it can rollback
SQL server can run DML, DDL in transaction but truncate in SQL Server can not be rollback so truncate is not a transaction.
MySQL also don't run truncate in transaction. We can not rollback once we issue truncate command even in transaction.
PostgreSQL we can have truncate in transaction. As PostgreSQL can run DDL and DML in transaction. If we run truncate in transaction, it can rollback
SQL server can run DML, DDL in transaction but truncate in SQL Server can not be rollback so truncate is not a transaction.
MySQL also don't run truncate in transaction. We can not rollback once we issue truncate command even in transaction.
No comments:
Post a Comment