•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 391,948 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,884 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 5634 | Replies: 2
![]() |
Hi peeps...
A good day to all of you yea~ as i know, i can retrieve only the first row by using the keyword limit 1:
for selecting the first two rows are:
is there any solution to getting the second row? not the two rows but is second..
THANKS yea~
A good day to all of you yea~ as i know, i can retrieve only the first row by using the keyword limit 1:
select * from tblTesting limit 1
select * from tblTesting limit 2
is there any solution to getting the second row? not the two rows but is second..
THANKS yea~
cheers,
ohgosh
ohgosh
See if this helps, go down about halfway where he is working on tables etc. The first part is setting it up for gentoo but on down a little may be what you want.
http://www.gentoo.org/doc/en/mysql-howto.xml
http://www.gentoo.org/doc/en/mysql-howto.xml
The LIMIT directive can take one or two attributes. If you use one attribute, for example "LIMIT 5", it will show only that many records which get taken off of the top of the list of results. If you use two attributes, for example "LIMIT 10, 5", it will skip the number of records indicated by the first number and then show the number of records indicated by the second number. In other words it's "LIMIT skip, show". So to do what you want, execute:
SELECT * FROM tblTesting LIMIT 1, 1
Did we help you? Did we miss the point entirely? Update your thread and let us know.
Don't like the answers you are getting?
Did you try searching?
Clean up and optimize Windows 2000/XP
Don't like the answers you are getting?
Did you try searching?
Clean up and optimize Windows 2000/XP
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
- Shopping Cart Not Working (ASP.NET)
- Autonumber in a SQL Server table (MS SQL)
- Php newsletter error (PHP)
- Print 5 records per table row (see script) (Perl)
- Loading and accessing 2 Dimensional tables (C++)
- gwt the record which match the current date (Visual Basic 4 / 5 / 6)
- Rows not added correctly when using 'INSERT' (PHP)
Other Threads in the MySQL Forum
- Previous Thread: MySQL Migration Toolkit help
- Next Thread: Question about SELECT statement.


Linear Mode