Showing posts with label PostgreSQL. Show all posts
Showing posts with label PostgreSQL. Show all posts

Monday, July 30, 2012

O'Reilly Media book: PostgreSQL: Up and Running

PostgreSQL: Up and Running:
If you’re thinking about migrating to the PostgreSQL open source database system, this guide provides a concise overview to help you quickly understand and use PostgreSQL’s unique features. Not only will you learn about the enterprise class features in the 9.2 release, you’ll also discover that PostgeSQL is more than just a database system—it’s also an impressive application platform. With numerous examples throughout this book, you’ll learn how to achieve tasks that are difficult or impossible in other databases.

Tuesday, July 19, 2011

SQL: Limiting the Number of Rows Returned

SQL Cookbook - O'Reilly Media

Chapter 1 Retrieving Records: Limiting the Number of Rows Returned.


Problem

You want to limit the number of rows returned in your query. You are not concerned with the order; any n rows will do.


Solution

Use the built-in function provided by your database to control the number of rows returned.


DB2

…


MySQL and PostgreSQL

Do the same thing in MySQL and PostgreSQL using LIMIT:
select * from emp limit 5
Oracle

…


SQL Server

…

Discussion

…

Monday, July 11, 2011

Friday, July 1, 2011

PostgreSQL: Manuals

PostgreSQL: Manuals

Maybe you appreciate the variants with user comments, or maybe you want to submit a comment yourself.