why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why?

during limit statement you written that SQL count starts from 0 so if we write 3 it will be starts from id no. 4 but in this section it is not like that why?

8th May 2020, 1:40 AM
HEMANTHKUMAR S
HEMANTHKUMAR S - avatar
1 Answer
0
LIMIT will display just that number of records. LIMIT 3 will display 3 records from the top. Probably you are looking for OFFSET which skips that many records. LIMIT 1 OFFSET 2 -> this means it will display 1 record after skipping the initial 2 records, so the 3rd record is displayed.
8th May 2020, 7:48 AM
Avinesh
Avinesh - avatar