IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ABT "FETCH FIRST 5 ROWS ONLY"


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ysuryawanshi_mcs
Warnings : 1

New User


Joined: 25 Mar 2006
Posts: 15
Location: pune(India)

PostPosted: Tue Apr 18, 2006 6:59 pm
Reply with quote

SELECT *
FROM DB2.YOUR_TABLE
FETCH FIRST 5 ROWS ONLY;

I HAV WRRITTEN THE QUERY AS
SELECT * FROM DEPT
FETCH FIRST 5 ROWS ONLY

BUT IT DOESNOT WORKS IT GIVES ERRORS
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1209
Location: Bangalore,India

PostPosted: Tue Apr 18, 2006 7:12 pm
Reply with quote

ysuryawanshi_mcs,

Its working for me
would u tell me what error u r getting
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts Reflection 3270 screen shows only 23 ... Compuware & Other Tools 6
No new posts To fetch records that has Ttamp value... DFSORT/ICETOOL 5
No new posts To get the count of rows for every 1 ... DB2 3
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
Search our Forums:


Back to Top