Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » SQL Functions » Alphabetical list of functions

HTTP_VARIABLE function [HTTP] Next Page

IDENTITY function [Miscellaneous]

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].

See also
Standards and compatibility

The following statement returns a sequentially-numbered list of employees.

SELECT IDENTITY( 10 ), Surname FROM Employees;