DROP and TRUNCATE in ORACLE | Difference between DROP and TRUNCATE in oracle | ORACLE

Опубликовано: 25 Август 2024
на канале: VCODE LOGIC
38
2

In Oracle, both DROP and TRUNCATE are used to remove data from tables, but they serve different purposes and have distinct effects.

1. DROP
Purpose:

The DROP command is used to completely remove a database object, such as a table, index, view, or user, from the database.


2. TRUNCATE
Purpose:

The TRUNCATE command is used to remove all rows from a table while preserving the table structure for future use.

Both commands are auto-committed and cannot be rolled back once executed.


Смотрите видео DROP and TRUNCATE in ORACLE | Difference between DROP and TRUNCATE in oracle | ORACLE онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь VCODE LOGIC 25 Август 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 38 раз и оно понравилось 2 людям.