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

اريد معرفة كيفية نقل بيانات جدول فى جدول اخر

Featured Replies

بتاريخ:

اريد معرفة كيفية نقل بيانات جدول فى جدول اخر

بتاريخ:

السلام عليكم
اذا كت تريد نقل جميع الحقول من جدول الى جدول اخر فلابد ان يكون الجدولين لهما نفس الحقول من حيث العدد و الوصف ويكون الكود كالاتى
insert into table1
from table 2;
commit;
اما اذا كنت تريد نقل بعض الجداول فلابد من تحديد هذه الحقول من الجدولين كالاتى
insert into table1(field1,field2,filed3)
select field1,filed2,field3
from table2;
commit;
معكم ولكم نتواصل

  • بعد 2 سنة...
بتاريخ:

السلام عليكم 

 

وفي حال كنت اريد ان انقل حقول من جدولين الي جدول واحد 

تم تعديل بواسطة anas.soft

بتاريخ:

اعمل join بينهم

بتاريخ:

اهلين م. اسلام 

 

ياريت تعمل مثال على ذلك 

 

شاكر ومقدر حسن تعونك

بتاريخ:

insert into test
select e.ename , d.dname from emp e , dept d
where e.deptno = d.deptno
/
 

بتاريخ:

insert into test

select e.ename , d.dname from emp e , dept d

where e.deptno = d.deptno

/

 

 

ممتاز بارك الله فيك تمت التجربة بنجاح

بتاريخ:

ممكن اعمل procedure ,واول لم اعمل run procedure بتنتقل الداتا direct 

for exm

_______

CREATE OR REPLACE procedure RER.enterr is  
p_returnrows number;
p_getstart date;
p_getend date;
p_sysdate date; 
p_count number;
p_planstid number; 
p_JOBid_SEQ number;
p_JOBid number;
p_getend date DEFAULT SYSDATE;
p_JOBMONIKER varchar2(20);
cursor mega is 
select  JOBid,count(*) returnrows,sysdate getstart 
--into p_JOBid,p_count,p_sysdate 
from ivi 
group by jobid  ;
begin
open mega;
 loop
fetch mega into p_JOBid,p_count,p_sysdate ;
exit when mega %notfound;
 
 insert into ijobs(jobid,returnrows,getstart) 
values (jobid_SEQ.nextval,p_count,p_sysdate );
end loop;
end enterr

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

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

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

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

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

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.