Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a top operator for informix like there is in SQL Server?

I want to run a delete that will just delete the top say 1000 records based on a ordered select.


delete from table 
 where id in (select top 1000 id from table order by date desc)
share|improve this question
up vote 2 down vote accepted

Yes. Use the FIRST clause with the select statemen

share|improve this answer
Thanks. although it turns out i dont have an informix database. It seems like i have a variant that doesn't have "FIRST". Still, cheers mate! – rumz Oct 25 '10 at 18:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.