Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 24th, 2003, 12:51 PM
nickwinters nickwinters is offline
Web Geek
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 62 nickwinters User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 25 sec
Reputation Power: 7
Setting a limit on rows returned

Is there a way to set a limit on the number of rows returned by my query?
__________________
Do not reinvent the wheel, unless your new wheel works that much better.

Reply With Quote
  #2  
Old July 24th, 2003, 01:48 PM
bcyde's Avatar
bcyde bcyde is offline
Me likey breadsticks...
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 1,189 bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 1 h 12 m 57 sec
Reputation Power: 12
Send a message via AIM to bcyde Send a message via Yahoo to bcyde
Check this link . This was actually posted just a day or two ago and is on the main page of this forum. In the future you may want to browse the forum topics and/or do a search before posting.

*Note I'm aware of the fact that it's hard to distinguish tone and intent from written messages on the internet so as a pre-emptive strike I'd like to say I'm not flaming you or chastising, just trying to help...

-b
__________________
PostgreSQL, it's what's for dinner...

Reply With Quote
  #3  
Old July 24th, 2003, 08:22 PM
WineIsGood's Avatar
WineIsGood WineIsGood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: New York
Posts: 49 WineIsGood User rank is Private First Class (20 - 50 Reputation Level)WineIsGood User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 51 sec
Reputation Power: 6
If you're using MS SQL Server, use:
SELECT TOP n FROM ....
where "n" is the number of rows you want returned.
-Dave

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Setting a limit on rows returned


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway