GUID: varchar(36) versus uniqueidentifier

后端 未结 5 1252
孤城傲影
孤城傲影 2021-02-19 01:12

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 01:52

    Perhaps only the fact that you can 'read' them from a SELECT statement (although I don't think that's particularly useful as you can use a function in a select to make Uniqueidentifiers displayable).

    If the table is large, saving 20 bytes per row is considerable.

提交回复
热议问题