zoukankan      html  css  js  c++  java
  • 插入ID=-1 的数据

     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
     
     
  • 相关阅读:
    python中list的一种取值方式切片
    python之字典(Dictionary)
    表示数字
    自动收售货系统
    明明的随机数
    自守数
    等差数列
    计算字符个数
    字符统计
    Redraimen的走法
  • 原文地址:https://www.cnblogs.com/xuwj/p/3747870.html
Copyright © 2011-2022 走看看