الانتقال إلى المحتوى

Dynamic Sql (temp Table) #urgent


memosamy

Recommended Posts


create or replace procedure credit.crttemp (fac in motz.std_faculties.faculty_code % type)
 
is
 
 
begin
 
EXECUTE IMMEDIATE
'create global temporary table ' || 'user_info' ||'on commit preserve rows'||'as
select ACA_USERS.doc_code , f_a.doctors.doc_name, ACA_USERS.user_name
from credit.ACA_USERS , f_a.doctors'||'
where ACA_USERS.FACULTY_CODE='||f_a.doctors.COLLEGE_WORK||'
and ACA_USERS.doc_code='||f_a.doctors.doc_code||'
and ACA_USERS.FACULTY_CODE='||FAC||'
order by f_a.doctors.doc_name asc' ;
 
end; 

 

 

كنت عايز اعرف تصحيح الكود ده ايه و شكرااا

dynamic sqlو لو فى حد عنده امثله لنفس الفكره او لل

تم تعديل بواسطة memosamy
رابط هذا التعليق
شارك

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

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

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

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

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