GUID: varchar(36) versus uniqueidentifier

后端 未结 5 918
北恋
北恋 2021-02-19 01:15

I\'m working with a legacy database that stores GUID values as a varchar(36) data type:

CREATE TABLE T_Rows (
    RowID    VARCHAR(36) NOT NULL PRIMARY KEY,
            


        
5条回答
  •  遥遥无期
    2021-02-19 02:09

    If your database is Oracle then the performance of indexes for raw data in older version of Oracle (9) was much, much poorer than indexing a varchar(36) field. Luckily this has changed in Oracle 10 and 11.

提交回复
热议问题