How should I store a GUID in Oracle?

后端 未结 7 772
无人及你
无人及你 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:36

    The general practice using Oracle is to create an artificial key. This is a column defined as a number. It is populated via a sequence. It is indexed/constrained via a primary key definition.

提交回复
热议问题