Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I limit the number of records returned for Interbase 7.1?

We have an Interbase 7.1 database and I'm trying to figure out how to limit the number of records returned by the query to just 1. I really only need to know an event code from the last record, in which the query will return hundreds of records if I cannot do some kind of limit.

Thanks in advance!

like image 914
Dragn1821 Avatar asked Jun 24 '09 19:06

Dragn1821


1 Answers

I think I figured it out. Needed to do something like this...

SELECT * FROM table ORDER BY col ROWS 1
like image 112
Dragn1821 Avatar answered Sep 25 '22 10:09

Dragn1821