You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qdhezheng-shell-release/02_scripts/00_建库脚本/BOS、Loyalty下发接口数据库初始化增量时间.sql

186 lines
3.3 KiB

1 year ago
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '002' as 'typecode', '001' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '002' as 'typecode', '002' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '002' as 'typecode', '003' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '002' as 'typecode', '004' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '002' as 'typecode', '005' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '002' as 'typecode', '006' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '002' as 'typecode', '007' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '003' as 'typecode', '001' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop
INSERT
INTO
t_int_log
( typecode,
itemcode,
orgcode,
comguid,
logdate,
logtime,
logtype,
logmsg,
sessioncode)
select '003' as 'typecode', '002' as 'itemcode' ,orgcode ,'' as comguid ,
CONVERT(varchar(10),
GETDATE(),
120) as 'logdate',
CONVERT(varchar,
GETDATE(),
24) as 'logtime','S' as 'logtype','<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>' as 'logmsg',null as 'sessioncode' from t_shop