Find if a column in Oracle has a sequence

后端 未结 5 524
孤独总比滥情好
孤独总比滥情好 2021-02-05 02:56

I am attempting to figure out if a column in Oracle is populated from a sequence. My impression of how Oracle handles sequencing is that the sequence and column are separate en

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-05 03:38

    There are no direct metadata links between Oracle sequences and any use in the database. You could make an intelligent guess if a column's values are related to a sequence by querying the USER_SEQUENCES metadata and comparing the LAST_NUMBER column to the data for the column.

提交回复
热议问题