dbTalk Databases Forums  

How to set the query limit pre-query?

comp.databases.postgresql comp.databases.postgresql


Discuss How to set the query limit pre-query? in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ebade2000@gmail.com
 
Posts: n/a

Default How to set the query limit pre-query? - 07-13-2007 , 09:23 AM






I may be backing up against a tree here, but I was wondering if there
is a way to set the maximum number of results one gets from a query
before running the query. Maybe something like:

SET QUERY_LIMIT 10
SELECT * FROM Authors;

instead of

SELECT * FROM Authors
LIMIT 10;

Thanks...

ebade2000


Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: How to set the query limit pre-query? - 07-24-2007 , 07:35 AM






ebade2000 (AT) gmail (DOT) com wrote:
Quote:
I may be backing up against a tree here,
I like that. Sounds painful :^) You probably meant "barking".
No, this newsgroup is the right tree.

Quote:
but I was wondering if there
is a way to set the maximum number of results one gets from a query
before running the query. Maybe something like:

SET QUERY_LIMIT 10
SELECT * FROM Authors;

instead of

SELECT * FROM Authors
LIMIT 10;
There is no such setting, sorry.

Yours,
Laurenz Albe


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.