How should I store a GUID in Oracle?

后端 未结 7 777
无人及你
无人及你 2020-12-08 02:16

I am coming from the SQL server world where we had uniqueidentifier. Is there an equivalent in oracle? This column will be frequently queried so performance is the key.

7条回答
  •  抹茶落季
    2020-12-08 02:35

    GUIDs are not as used in Oracle as in MSSQL, we tend to have a NUMBER field (not null & primary key) , a sequence, and a trigger on insert to populate it (for every table).

提交回复
热议问题