Re: [SQL] select only the first record

2001-07-10 Thread Christof Glaser
On Tuesday, 10. July 2001 15:09, [EMAIL PROTECTED] 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 SELECT * FROM cars ORDER BY LIMIT 1; Without ORDER BY, there is no "first" record - any record could be

Re: [SQL] select only the first record

2001-07-10 Thread Jan Wieck
[EMAIL PROTECTED] 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 O

[SQL] select only the first record

2001-07-10 Thread juerg . rietmann
Hello there Is it possible to do a query and selecting only the first record in ad table ? e.g. select FIRST * from cars Tx in advance ... jr PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone