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

create view in procedure


qnoc_raed

Recommended Posts

السلام علييكم
هل من الممكن عمل
create or replace view
داخل البروسيجر او الفنكشن مثلا قمت بعمل التالي ولكن دائما يعطي خطا
create or replace view aa as
select e.empno,e.ename,d.dname from emp e,dept d where e.deptno = d.deptno;

الخطا دائما هو
encountered the symbol "create" when expecting one of the following degin declare ......
كيف يمكن حل هذا الخطا واذا انه غير ممكن كيف استطيع ان اعدل في الفيو من خلال البروسيجر بحيث اعيد بناءه حسب القيم التي تاخذها البروسيجر

وشكرا

رابط هذا التعليق
شارك

you cant do ddl commands in functions or procedures, do that by using forms_ddl if you are executing from forms developer or use execute immediate 'your statment', or use dbms_sql package

رابط هذا التعليق
شارك

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

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

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

×   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.

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

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

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