Computing.Net > Forums > Programming > SQL Statement

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

SQL Statement

Reply to Message Icon

Name: khanati
Date: July 1, 2004 at 12:57:48 Pacific
OS: Windows XP
CPU/Ram: 1GB
Comment:

I am trying to query database:

there 1000 records and i need row number 120th. How do i write a quesry for this.

I hope someone will help me out.

Atif



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: July 3, 2004 at 17:41:21 Pacific
Reply:

what database?

if it's mysql I think it'll be better if you can look for some specific part of that 120th row (like the ID)...

if not, (assuming it's mysql), you can look for that 120th row after sorting them by doing this:

SELECT * FROM `table_name` ORDER BY `order_column` LIMIT 119,1;



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: SQL Statement

Sql statement www.computing.net/answers/programming/sql-statement/12683.html

Oracle Tables in SQL Statements www.computing.net/answers/programming/oracle-tables-in-sql-statements/9313.html

SQL Statement www.computing.net/answers/programming/sql-statement/6099.html