Difference between revisions of "ROWNUM()"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | ''Note: The ROWNUM Pseudo Column has been replaced with the ROWNUM() function.'' | ||
+ | |||
+ | |||
==Purpose== | ==Purpose== | ||
− | + | Function to return a number indicating the order in which the rows are selected from the table | |
==Syntax== | ==Syntax== | ||
− | ROWNUM | + | ROWNUM() |
==See Also== | ==See Also== | ||
− | [[PSEUDO COLUMNS]], [[SQL INSERT|INSERT]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]] | + | [[CURSYNCNUM()]], [[PSEUDO COLUMNS]], [[RECNO()]], [[SQL INSERT|INSERT]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]], [[SYNCNUM()]] |
==Description== | ==Description== | ||
− | + | The ROWNUM() function returns a number indicating the order in which the rows are selected from the table. This can be contrasted with the physical row number in the table. | |
− | + | ||
− | The ROWNUM | + | |
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | OPEN DATABASE southwind | |
− | + | SELECT rownum(), recno(), state from example where state = "MA" | |
− | + | ||
− | SELECT | + | |
− | + | ||
− | + | ||
− | + | ||
</code> | </code> | ||
==Products== | ==Products== | ||
− | Recital | + | Recital, Recital Server |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:SQL]] | [[Category:SQL]] | ||
− | [[Category: | + | [[Category:Functions]] |
Latest revision as of 11:07, 5 July 2011
Note: The ROWNUM Pseudo Column has been replaced with the ROWNUM() function.
Purpose
Function to return a number indicating the order in which the rows are selected from the table
Syntax
ROWNUM()
See Also
CURSYNCNUM(), PSEUDO COLUMNS, RECNO(), INSERT, SELECT, UPDATE, SYNCNUM()
Description
The ROWNUM() function returns a number indicating the order in which the rows are selected from the table. This can be contrasted with the physical row number in the table.
Example
OPEN DATABASE southwind SELECT rownum(), recno(), state from example where state = "MA"
Products
Recital, Recital Server