测试集团版.sql 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. USE [dbmsg]
  2. DECLARE @branchId nvarchar(50) -- 域名;
  3. DECLARE @ip nvarchar(50) -- ip地址;
  4. DECLARE @bz nvarchar(50) -- 备注;
  5. DECLARE @Dt nvarchar(50) -- 记录日期;
  6. DECLARE @ApyDt nvarchar(50) -- 使用日期;
  7. DECLARE @branchName nvarchar(50) -- 店名;
  8. DECLARE @EnterprisName nvarchar(50) -- 总店名;
  9. DECLARE @regcode2 nvarchar(60) --
  10. DECLARE @bmain nvarchar(50) -- 是否总店;
  11. DECLARE @ModifyDt nvarchar(50) -- 修改时间;
  12. DECLARE @Right nvarchar(500) -- 权限;
  13. DECLARE @log nvarchar(max) -- 日志;
  14. DECLARE @Regcode nvarchar(500) -- 注册码;
  15. DECLARE @name2 nvarchar(50) -- 名称2;
  16. SET @branchId = '20151208000000473489.ly.com'
  17. SET @ip = '192.168.1.191'
  18. SET @bz = ''
  19. SET @Dt = ''
  20. SET @ApyDt = ''
  21. SET @branchName = '191店'
  22. SET @EnterprisName = '利亚方舟IT'
  23. SET @regcode2 = ''
  24. SET @bmain = '总店'
  25. SET @ModifyDt = ''
  26. SET @Right = '119店,191店'
  27. SET @log = ''
  28. SET @Regcode = ''
  29. SET @name2 = ''
  30. INSERT INTO [dbmsg].[dbo].[clientip]
  31. ([name]
  32. ,[ip]
  33. ,[bz]
  34. ,[datetime]
  35. ,[applydate]
  36. ,[branchname]
  37. ,[enterprisename]
  38. ,[regcode2]
  39. ,[bmain]
  40. ,[modifydate]
  41. ,[rights]
  42. ,[log]
  43. ,[regcode]
  44. ,[name2])
  45. VALUES
  46. (@branchId
  47. ,@ip
  48. ,@bz
  49. ,@Dt
  50. ,@ApyDt
  51. ,@branchName
  52. ,@EnterprisName
  53. ,@regcode2
  54. ,@bmain
  55. ,@ModifyDt
  56. ,@Right
  57. ,@log
  58. ,@Regcode
  59. ,@name2)
  60. GO