|
|
-
- --������ַ����
- create table tb_address (
- id int identity, --����ID
- userid int null default 0, --��ԱID
- name nvarchar(100) null, --�ռ���
- mobile nvarchar(20) null default'', --��ϵ�绰
- zipcode nvarchar(20) null default'', --��������
- province nvarchar(100) null default'', --ʡ
- city nvarchar(100) null default'', --��
- area nvarchar(100) null default'', --��
- xxaddress nvarchar(255) null default'', --��ϸ��ַ
- paixu int null default 0, --����
- state int null default 0, --�Ƿ���ΪĬ���ջ���ַ{0/�ǣ�1/��}
- stateaddress int null default 0, --�Ƿ�Ϊ��Ч��ַ{0/�ǣ�1/��}
- add_time datetime null default getdate(), --��ַ��������
- constraint PK_TB_ADDRESS primary key (id)
- )
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��������',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'id'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��ԱID',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'userid'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '�ռ���',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'name'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��ϵ�绰',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'mobile'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��������',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'zipcode'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- 'ʡ',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'province'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'city'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'area'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��ϸ��ַ',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'xxaddress'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'paixu'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '�Ƿ���ΪĬ���ջ���ַ{0/�ǣ�1/��}',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'state'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '�Ƿ�Ϊ��Ч��ַ{0/�ǣ�1/��}',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'stateaddress'
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��ַ��������',
- 'user', @CurrentUser, 'table', 'tb_address', 'column', 'add_time'
- go
-
|