Subject | Re: [firebird-support] Firebird and LIMIT |
---|---|
Author | Martijn Tonies |
Post date | 2008-09-08T11:58:01Z |
Hi Normn,
not always possible to limit on the basis of the WHERE clause.
...
As per Release Notes ;-)
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> I'm converting an app from MySQL to FB. One of the bothersome issues issyntax.
> MySQL has the LIMIT modifier which takes a numeric argument, limiting thenumber of rows retuend by a query.
> MSSQL has an equivalent in TOP. does Firebird have anything like this?not certain of what you're going to get back, until you've gotten it, it is
> Obviously, one is inclined to think of the WHERE clause, but since you are
not always possible to limit on the basis of the WHERE clause.
> Any suggestions as to how to overcome this problem?SELECT FIRST [n] [SKIP [m]]
...
As per Release Notes ;-)
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com