An IDENTITY column contains a value for each row, generated automatically by SAP ASE, that uniquely identifies the row within the table.
Each table can have only one IDENTITY column. You can define an IDENTITY column when you create a table with a create table or select into statement, or add it later with an alter table statement.
create table table_name (column_name numeric(precision ,0) identity)
create table sales_daily (sale_id numeric(5,0) identity, stor_id char(4) not null)
Once an IDENTITY column reaches its maximum value, all further insert statements return an error that aborts the current transaction
You can create automatic IDENTITY columns by using the auto identity database option and the size of auto identity configuration parameter. To include IDENTITY columns in nonunique indexes, use the identity in nonunique index database option.