--产品属性值 create table tb_product_attribute_value ( id int identity, --自增id class_id nvarchar(500) not null, --类别 product_id int not null default 0, --产品id count int not null default 0, --数量 price decimal(18,2) not null, --价格 code nvarchar(255) null default '', --商家编码 barcode nvarchar(255) null, --商品条形码 constraint PK_TB_PRODUCT_ATTRIBUTE_VALUE primary key (id) ) go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '自增ID', 'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '类别', 'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'class_id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '产品id', 'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'product_id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '数量', 'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'count' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '价格', 'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'price' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '商家编码', 'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'code' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '商品条形码', 'user', @CurrentUser, 'table', 'tb_product_attribute_value', 'column', 'barcode' go