Difference between revisions of "SYNCNUM()"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 7: | Line 7: | ||
==Syntax== | ==Syntax== | ||
− | SYNCNUM() | + | SYNCNUM([<workarea | alias>]) |
Line 15: | Line 15: | ||
==Description== | ==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. | + | The SYNCNUM() function returns the unique sequence number assigned to a row from the specified table. The SYNCNUM() function operates on the current workarea unless a numeric <workarea> or character <alias> is specified. |
+ | |||
+ | 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. | ||
Line 30: | Line 32: | ||
[[Category:SQL]] | [[Category:SQL]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Table Basics]] | ||
+ | [[Category:Table Basics Functions]] |
Revision as of 11:03, 5 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([<workarea | alias>])
See Also
CURSYNCNUM(), 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. The SYNCNUM() function operates on the current workarea unless a numeric <workarea> or character <alias> is specified.
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