码迷,mamicode.com
首页 > 其他好文 > 详细

IDENTITY插入

时间:2018-06-24 20:51:57      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:管理员   asc   clu   str   超级   deletion   com   col   rtc   

CREATE TABLE [dbo].[t_PayWay](
    [id] [int] IDENTITY(1,1) NOT NULL,
    [Code] [varchar](20) NULL,
    [Name] [varchar](200) NULL,
    [SortCode] [int] NULL,
    [Enabled] [int] NULL,
    [DeletionStateCode] [int] NULL,
    [Description] [nvarchar](200) NULL,
    [CreateOn] [datetime] NULL,
    [CreateUserId] [nvarchar](20) NULL,
    [CreateBy] [nvarchar](20) NULL,
    [ModifiedOn] [datetime] NULL,
    [ModifiedUserId] [nvarchar](20) NULL,
    [ModifiedBy] [nvarchar](20) NULL,
    [defaultpay] [int] NULL,
    [YZSK] [int] NULL,
    [YZDH] [int] NULL,
    [YZTT] [int] NULL,
    [DYSK] [int] NULL,
    [DYDH] [int] NULL,
    [DYTT] [int] NULL,
    [CZ] [int] NULL,
    [YJ] [int] NULL,
    [ZJ] [int] NULL,
    [bIsSystemSet] [int] NULL,
    [bUnCanChange] [int] NULL,
 CONSTRAINT [PK_T_PAYWAY] 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]
SET IDENTITY_INSERT [dbo].[t_PayWay] ON 

INSERT [dbo].[t_PayWay] ([id], [Code], [Name], [SortCode], [Enabled], [DeletionStateCode], [Description], [CreateOn], [CreateUserId], [CreateBy], [ModifiedOn], [ModifiedUserId], [ModifiedBy], [defaultpay], [YZSK], [YZDH], [YZTT], [DYSK], [DYDH], [DYTT], [CZ], [YJ], [ZJ], [bIsSystemSet], [bUnCanChange]) VALUES (1, N1, N现金, 10000037, 1, NULL, N系统配置,不可编辑删除, CAST(N2016-11-08 11:51:16.213 AS DateTime), N10000000, N超级管理员, CAST(N2017-09-24 13:30:02.220 AS DateTime), N10000000, N超级管理员, NULL, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NULL) 

SET IDENTITY_INSERT [dbo].[t_PayWay] OFF

 

IDENTITY插入

标签:管理员   asc   clu   str   超级   deletion   com   col   rtc   

原文地址:https://www.cnblogs.com/qi123/p/9221334.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!