Hi
In ORACLE I can get a unique value from a sequence and use it in anyway I need to without reference to a tables column
In SYBASE we have IDENTITY to create a unique value but I need a way to produce a unique value for a column but not for every record. There are certain record types that require this unique value and the rest just have NULL. Is there anything in SYBASE that gives a sequence value independent of IDENTITY columns?
I know I can select max(fieldname)+1 .... but I just wondered if there is a more slick way that doesn't require locking.
In ORACLE I can get a unique value from a sequence and use it in anyway I need to without reference to a tables column
In SYBASE we have IDENTITY to create a unique value but I need a way to produce a unique value for a column but not for every record. There are certain record types that require this unique value and the rest just have NULL. Is there anything in SYBASE that gives a sequence value independent of IDENTITY columns?
I know I can select max(fieldname)+1 .... but I just wondered if there is a more slick way that doesn't require locking.