Subject | RE: [firebird-support] Firebird and LIMIT |
---|---|
Author | Norman McFarlane |
Post date | 2008-09-08T12:13:06Z |
To Martijn and Sasha,
Wow! Thanks for such a prompt response.
So, something like "select c_name, c_familyname, c_id from contacts rows 1
to 1" will return the top row only in the result set?
Regards,
Norman
_____
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Sasha Matijasic
Sent: 08 September 2008 02:00 PM
To: firebird-support@yahoogroups.com
Subject: RE: [firebird-support] Firebird and LIMIT
where ...
rows n to m
or
select first n skip m from foo
where...
(this syntax is older, if you are using version 2 or above, use rows)
Sasha
[Non-text portions of this message have been removed]
Wow! Thanks for such a prompt response.
So, something like "select c_name, c_familyname, c_id from contacts rows 1
to 1" will return the top row only in the result set?
Regards,
Norman
_____
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Sasha Matijasic
Sent: 08 September 2008 02:00 PM
To: firebird-support@yahoogroups.com
Subject: RE: [firebird-support] Firebird and LIMIT
> I'm converting an app from MySQL to FB. One of the bothersome issues isselect * from foo
> syntax.
> MySQL has the LIMIT modifier which takes a numeric argument, limiting
> the number of rows retuend by a query.
> MSSQL has an equivalent in TOP. does Firebird have anything like this?
where ...
rows n to m
or
select first n skip m from foo
where...
(this syntax is older, if you are using version 2 or above, use rows)
Sasha
[Non-text portions of this message have been removed]