If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > HowTo Select firts rows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 14:56
wzbn wzbn is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 14
HowTo Select firts rows

Hi,

I'm looking for a way to get the firts rows of a query, (on IDS 7.3).
In other words something similar to the TOP command in MS SQL Server.

For example: "select top 100 * from tablename".

Does anyone knows Hos to do that ?

Thanks a lot
Reply With Quote
  #2 (permalink)  
Old 04-01-04, 22:24
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Re: HowTo Select firts rows

Quote:
Originally posted by wzbn
Hi,

I'm looking for a way to get the firts rows of a query, (on IDS 7.3).
In other words something similar to the TOP command in MS SQL Server.

For example: "select top 100 * from tablename".

Does anyone knows Hos to do that ?

Thanks a lot
Hi,

Select firts 50 col1, col2 from tablename

you will have to specify the columns
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 22:25
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Re: HowTo Select firts rows

Quote:
Originally posted by lloydnwo


Hi,

Typo error, it should be first


Select first 50 col1, col2 from tablename

you will have to specify the columns
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On