0 like 0 dislike
672 views
I want to set Row Range with LIMIT in postgres
in Education & Reference by (180 points)
retagged | 672 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
1 answer
asked Mar 28, 2019 in Education & Reference by Neha (620 points) | 43 views
1 like 0 dislike
0 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
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 (2.4k points) | 550 views
0 like 0 dislike
1 answer

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,202 questions
1,348 answers
553 comments
1,994 users