Re: select only the first record - Mailing list pgsql-sql

From Jan Wieck
Subject Re: select only the first record
Date
Msg-id 200107101331.f6ADVk914719@jupiter.us.greatbridge.com
Whole thread Raw
In response to select only the first record  (juerg.rietmann@pup.ch)
List pgsql-sql
juerg.rietmann@pup.ch wrote:
> Hello there
>
> Is it possible to do a query and selecting only the first record in ad
> table ?
>
> e.g. select FIRST * from cars
   You  can either use a CURSOR and FETCH only the first row, or   use LIMIT (non-standard).
   And you might  want  to  explicitly  ORDER  the  result  set,   otherwise   exchange   "FIRST"   with  "ONE-RANDOM"
in your   question.
 


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



pgsql-sql by date:

Previous
From: juerg.rietmann@pup.ch
Date:
Subject: select only the first record
Next
From: Christof Glaser
Date:
Subject: Re: select only the first record