miash80 بتاريخ: 16 مايو 2007 تقديم بلاغ مشاركة بتاريخ: 16 مايو 2007 السلام عليكم ورحمة الله وبركاتهأخواني الاعزاء أعضاء هذا المنتدى الرائع ارجوا مساعدتييوجد عندي data كبيرة جدا ومكررة اريد ان أشطبها وابقي فقط ال data الغير مكررة ما هي جملة الselect اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
selman0 بتاريخ: 17 مايو 2007 تقديم بلاغ مشاركة بتاريخ: 17 مايو 2007 Delete Duplicate Rows From an Oracle TableIt's easy to introduce duplicate rows of data into Oracle tables by running a data load twice without the primary key or unique indexes created or enabled.Here's how you remove the duplicate rows before the primary key or unique indexes can be created: DELETE FROM our_tableWHERE rowid not in(SELECT MIN(rowid)FROM our_tableGROUP BY column1, column2, column3... ;Here column1, column2, column3 constitute the identifying key for each record.Be sure to replace our_table with the table name from which you want to remove the duplicate rows. The GROUP BY is used on the columns that make the primary key for the table. This script deletes each row in the group after the first row.devx forum اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.