all groups > sql server odbc > november 2004 >
You're in the

sql server odbc

group:

LIMIT


LIMIT Urban
11/26/2004 1:22:29 PM
sql server odbc:
hi,

I have a question.
Maybe You know the equivalent to command LIMIT from MySQL
I couldn`t find something like this in MS SQL
PS
I try to display 10 records begining form e.g. 4 sort by id
something like: "SELECT * FROM table WHERE name=... LIMIT 4, 10 ORDER BY id"
in MySQL

thanx,
Urban

Re: LIMIT Igor Shekalev
12/1/2004 9:13:38 PM
I think you can only select top N records using next statement:
"SELECT top 10 * FROM table WHERE name=... ORDER BY id"

U> I try to display 10 records begining form e.g. 4 sort by id something
U> like: "SELECT * FROM table WHERE name=... LIMIT 4, 10 ORDER BY id" in
MySQL

Igor Shekalev, http://www.sqledit.com, SQL editor with ODBC support
Re: LIMIT Imad Koussa
1/13/2005 9:05:45 AM
try preceding your query with:

Set rowcount 4
This will limit the returned rows to 4

[quoted text, click to view]

AddThis Social Bookmark Button