Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

111 Zeilen
3.7 KiB

--
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