sql - How to find out if a column is an auto increment field in oracle? -
how find out if column auto increment field in oracle?
you can't. oracle doesn't have auto-increment fields.
oracle supports sequences, separate database objects generating numbers. these seuqences can used in insert statement or in before insert trigger generate primary key value new record.
the fields normal field , there no relation between sequence , field.
so hope parse trigger , see if can find evidence of being filled there using sequence. tough job, though, , doubt if can make reliable enough. after all, trigger fire function returns value, have go way if want sure.
Comments
Post a Comment