<p>In Oracle, the number of rows returned in an arbitrary query can be limited by filtering on the "virtual" <code>rownum</code> column. Consider the following example, which will return, at most, 10 rows.</p>

<pre>SELECT * FROM all_tables WHERE rownum &lt;= 10</pre>

<p>Is there a simple, generic way to do something similar in Ingres?</p>

[{'answer_id': 49604, 'author': 'Tnilsson', 'author_id': 4165, 'author_profile': 'https://Stackoverflow.com/users/4165', 'pm_score': 4, 'selected': True, 'text': '<p>Blatantly changing my answer. "Limit 10" works for MySql and others, Ingres uses</p>\n\n<pre><code>Select First 10 * from myTable\n</code></pre>\n\n<p><a href="http://docs.ingres.com/sqlref/Selectinteractive" rel="noreferrer">Ref</a></p>\n'}, {'answer_id': 49696, 'author': 'Craig Day', 'author_id': 5193, 'author_profile': 'https://Stackoverflow.com/users/5193', 'pm_score': 2, 'selected': False, 'text': '<p>select * from myTable limit 10 does not work.</p>\n\n<p>Have discovered one possible solution:</p>\n\n<pre>\n    TIDs are "tuple identifiers" or row addresses.  The TID contains the\n    page number and the index of the offset to the row relative to the\n    page boundary.  TIDs are presently implemented as 4-byte integers.\n    The TID uniquely identifies each row in a table.  Every row has a\n    TID.  The high-order 23 bits of the TID are the page number of the page\n    in which the row occurs.  The TID can be addressed in SQL by the name \n    `tid.\'\n</pre>\n\n<p>So you can limit the number of rows coming back using something like:</p>\n\n<pre>select * from SomeTable where tid &lt; 2048</pre>\n\n<p>The method is somewhat inexact in the number of rows it returns. It\'s fine for my requirement though because I just want to limit rows coming back from a very large result set to speed up testing. </p>\n'}, {'answer_id': 49705, 'author': 'Tnilsson', 'author_id': 4165, 'author_profile': 'https://Stackoverflow.com/users/4165', 'pm_score': 0, 'selected': False, 'text': '<p>Hey Craig. I\'m sorry, I made a Ninja Edit.\nNo, Limit 10 does not work, I was mistaken in thinking it was standard SQL supported by everyone. Ingres uses (according to doc) "First" to solve the issue.</p>\n'}, {'answer_id': 49711, 'author': 'Craig Day', 'author_id': 5193, 'author_profile': 'https://Stackoverflow.com/users/5193', 'pm_score': 0, 'selected': False, 'text': '<p>Hey Ninja editor from Stockholm! No worries, have confirmed that "first X" works well and a much nicer solution than I came up with. Thankyou!</p>\n'}]
['https://Stackoverflow.com/questions/49602', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5193/']