الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

" DELETE FROM" AND "TRUNCATE"

Featured Replies

بتاريخ:

:(

السلام عليكم ورحمة الله وبركاته،،

what are the deferences between truncate table instruction and delete from table,

what is the benefit of two commands do same thing , as i under stand . help me please

:o

بتاريخ:

hello , the main difference between delete and truncate is that you can rollback the delete statment , but u can't rollback a truncate statment , which means you can retreive records which was delete , but you can't retreive records that are truncated .
:(

بتاريخ:

مشكورييين على المعلومات القيمه

بتاريخ:
  • كاتب الموضوع

thank u 2 much khalidocp ,for answering me ,but what is the benefit of "truncate ",while "delete" doing same function and also can rollback its effect
!!!
:D

  • بعد 4 أسابيع...
بتاريخ:

when u delete a big data from table it is nice to use truncate with option drop storage to clear the space that the table use and it is the benifit of use truncate
:)

  • بعد 3 أسابيع...
بتاريخ:

Truncat is DDL statement and Delete is DML statement , this deference is enough to understand the benefits, because as we know DDL commits any transactions before it and also it works directly with the tablespace , this is my concept in addition to the previous answers of our brothers...

بتاريخ:
  • كاتب الموضوع

thank u all for answers,
and good view from brother OSS...thats right what u said.

  • بعد 4 أسابيع...
بتاريخ:

another important thing is

when u use delete u do not take back the stoarge used by the table data the table size still the same.

but with truncate it reset the table size to its initial value.

:ph34r:

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.