建表语句:t_number

USE [db_NLSOS]
GO
/****** 对象:  Table [dbo].[t_number]    脚本日期: 03/12/2012 11:54:16 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[t_number](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[category] [varchar](50) NOT NULL CONSTRAINT [DF_t_number_category]  DEFAULT (''),
	[name] [varchar](50) NOT NULL CONSTRAINT [DF_t_number_name]  DEFAULT (''),
	[prefix] [varchar](50) NOT NULL CONSTRAINT [DF_t_number_prestring]  DEFAULT (''),
	[suffix] [varchar](50) NOT NULL CONSTRAINT [DF_t_number_sufstring]  DEFAULT (''),
	[current_number] [int] NOT NULL CONSTRAINT [DF_t_number_current]  DEFAULT ((0)),
	[format] [varchar](50) NOT NULL CONSTRAINT [DF_t_number_format]  DEFAULT (''),
	[note] [varchar](1000) NOT NULL CONSTRAINT [DF_t_number_note]  DEFAULT (''),
 CONSTRAINT [PK_t_number] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_number', @level2type=N'COLUMN',@level2name=N'id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'(唯一)分类、类别(索引)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_number', @level2type=N'COLUMN',@level2name=N'category'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_number', @level2type=N'COLUMN',@level2name=N'name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'前缀' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_number', @level2type=N'COLUMN',@level2name=N'prefix'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'后缀' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_number', @level2type=N'COLUMN',@level2name=N'suffix'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'当前编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_number', @level2type=N'COLUMN',@level2name=N'current_number'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'格式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_number', @level2type=N'COLUMN',@level2name=N'format'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_number', @level2type=N'COLUMN',@level2name=N'note'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值