Difference between revisions of "SYNCNUM()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 11: | Line 11: | ||
==See Also== | ==See Also== | ||
− | [[SQL INSERT|INSERT]], [[Optimizing Indexes using SYNCNUM]], [[SQL Pseudo Columns|PSEUDO COLUMNS]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]] | + | [[SQL INSERT|INSERT]], [[Optimizing Indexes using SYNCNUM]], [[RECNO()]], [[SQL Pseudo Columns|PSEUDO COLUMNS]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]] |
Line 20: | Line 20: | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | |||
− | |||
OPEN DATABASE southwind | OPEN DATABASE southwind | ||
SELECT syncnum(), recno() FROM example | SELECT syncnum(), recno() FROM example |
Revision as of 15:13, 4 July 2011
Note: The SYNCNUM Pseudo Column has been replaced with the SYNCNUM() function.
Purpose
Function to return the unique sequence number assigned to a row from the specified table
Syntax
SYNCNUM()
See Also
INSERT, Optimizing Indexes using SYNCNUM, RECNO(), PSEUDO COLUMNS, SELECT, UPDATE
Description
The SYNCNUM() function returns the unique sequence number assigned to a row from the specified table. Each new row inserted into a table will be assigned a unique sequence number for that table. Even if the row is deleted later or if all the rows are deleted from the table, that number will not be issued again.
Example
OPEN DATABASE southwind SELECT syncnum(), recno() FROM example
Products
Recital, Recital Server