الانتقال إلى المحتوى
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.

Temp Table In Procedure ? How?

Featured Replies

بتاريخ:

مرحبــا ...

ممكن تعلوني طريقة اعداد بروسيجر يحتوي على temp table و يدخل بيانات من select statment from many table ??

ابيها ضوروري

دمتم سالمين

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

يعني محد يعرف كيف يعملها ؟؟ طيب اي مثال لاني دورت كثير و مالقيت اي شي (!_!)

بتاريخ:


Hi there
You can create the temp tables as follows
CREATE GLOBAL TEMPORARY TABLE MIG2.MY_TEMP
(
id NUMBER,
DESC VARCHAR2(150)
)
ON COMMIT DELETE ROWS
NOCACHE;


and after you create it, it becom an object on the database, that one of its property on commit will delete all data in it, or when the session ends it will also delete the data, and its session dependant, means that defferent sessions cant share that data wich is stored in the temp table,
how to use it?
it can be used as any other table select from it, insert to it, delete from it, and also create index on columns on it
such as

insert into my_temp
select eno,ename from scott.emp;

delete from my_temp where eno = 10
update my_temp
set sal= 1000
where eno = 10;

i hope this will answer youre question

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

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

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

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

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

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.