GUID: varchar(36) versus uniqueidentifier

后端 未结 5 912
北恋
北恋 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:02

    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.

提交回复
热议问题