标签:c blog http a com 数据
IF NOT EXISTS(SELECT * FROM [dbo].[T_OMS_Distributor] WHERE Id =-1)
BEGIN
SET IDENTITY_INSERT [dbo].[T_OMS_Distributor] ON
INSERT [dbo].[T_OMS_Distributor] ([Id], [OwnerId], [CreationDate], [ModifierId], [ModifiedDate], [IsActive], [OMS_DistributorRankId], [DistributorName], [DistributorFullName], [ContactorName], [Phone], [Mobile], [Fax], [Address], [Remark], [CompanyId]) VALUES (-1, N‘ecshow‘, CAST(0x0000A2E601145269 AS DateTime), N‘ecshow‘, CAST(0x0000A2E601145269 AS DateTime), 1, NULL, N‘总部‘, N‘总部‘, N‘‘, N‘‘, N‘1234rt678‘, N‘‘, N‘‘, N‘‘, -1)
SET IDENTITY_INSERT [dbo].[T_OMS_Distributor] OFF
END
GO
IF NOT EXISTS(SELECT * FROM dbo.T_OMS_DistributorAccountInfo WHERE Id =-1)
BEGIN
INSERT [dbo].[T_OMS_DistributorAccountInfo] ([Id], [Amount], [OccupyAmount], [FreezeAmount], [CreditAmount], [CompanyId]) VALUES (-1, CAST(0 AS Decimal(14, 4)), CAST(0.0000 AS Decimal(14, 4)), CAST(0.0000 AS Decimal(14, 4)), CAST(0.0000 AS Decimal(14, 4)), -1)
END
插入ID=-1 的数据,布布扣,bubuko.com
插入ID=-1 的数据
标签:c blog http a com 数据
原文地址:http://www.cnblogs.com/xuwj/p/3747870.html