Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit count of records at SELECT query 1

Status
Not open for further replies.

chilloutfuchs

IS-IT--Management
Sep 3, 2001
1
DE
Hi,

I 've change my database server from mysql to pervasive sql 2000. I 've many query's lokking like this:
"SELECT * FROM database WHERE name = 'hans' LIMIT 1,5"
The Problem is: Pervasive don't know the LIMIT-statement. But i had to select only the first 5... How can i do this on Pervasive?

Sorry for my poor english and thanks for help!
 
Pervasive 2000 does not have a simple way of doing this in the SQL statement.

If you are using ADO you can use a client side cursor and try setting the ADO recordset object's .maxrecords property.

Pervasive V8, however, does support the 'TOP' keyword. So you can do something like 'Select Top 10 * From table1'.

Take Care,

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top