الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

limit selected rows

مغلق
بدأه saif22s في 4 يونيو 2003 · 5 رد · 947 مشاهدة · في قواعد بيانات Oracle
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

i want to retrieve only the 1st ten rows(from 1 to 10)

how i can do that...with useing select all

#2

إذا كنت مستخدم ترقيم للصفوف (ID) فبهذه الطريقة

select *

from tablename

where id<=10;
#3

thank you brother mobarak for help,,,,but if u know sql server you will find command(limit)like

select * from emp

limit 10;

he will fetch only 10 rows every time..so how i can do this in sql*plus

#4

الطريقة التي ذكرتها لك تعمل على SQL*Plus

وتقبل تحياتي ....

#5

السلام عليكم

أخوي saif22s

if you want to retrieve only 10rows in each statement, you have to use rownum

select col1,col2

from table1

;where rownum <11

#6

thank you asma55,,,thats what i need exactly

هذا الموضوع مغلق.

مواضيع مشابهة