|
|
- --��Ʒ����ֵ
- 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
|