Claim your Biolink Click Here
0 like 0 dislike
845 views
I want to set Row Range with LIMIT in postgres
in Education & Reference by (460 points)
retagged | 845 views

1 Answer

0 like 0 dislike

PostgreSQL provides a mechanism for limiting query results using the limit and / or offset SQL syntax.

Example 1: Returning the first 10 rows from a table called Name:

select * from Name limit 100

Example 2: Returning 10 records from the table Name starting at row 0

select * from Name limit 10 offset 0

by

Related questions

2 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Mar 28, 2019 in Education & Reference by Neha (1.1k points) | 416 views
1 like 0 dislike
0 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
2 like 0 dislike
2 answers
0 like 0 dislike
1 answer
3 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jul 25, 2013 in Education & Reference by Marc (4.7k points) | 797 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,310 questions
1,471 answers
569 comments
4,809 users