Generates integer values, starting at 1, for each successive row in a query. Its implementation is identical to that of the NUMBER function.
IDENTITY( expression )
expression An expression. The expression is parsed, but is ignored during the execution of the function.
For a description of how to use the IDENTITY function, see NUMBER function [Miscellaneous].
SQL/2003 Transact-SQL extension.
The following statement returns a sequentially-numbered list of employees.
SELECT IDENTITY( 10 ), Surname FROM Employees;
|Discuss this page in DocCommentXchange.
Send feedback about this page using email.
|Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|