标签:
INSERT INTO RPT_TR_CINEMA_TICKET_TRADE_DETAIL(
ID,
TRADE_DATE,
SCINEMA_CD,
OPT_TYPE,
TRADE_CHANL,
FILM_CD,
HALL_CD,
CINEMA_NAME,
FILM_NAME,
SHOW_DATE,
SHOW_TIME,
TICKET_TYPE,
TICKET_GROUP,
BOOKING_ID,
TICKET_NO,
SEQ_NO,
ROW_ID,
COL_ID,
PAYMENT_SEQ,
PAYMENT_TYPE,
PAYMENT_AMT,
PAYMENT_NUM,
TICKET_AMT,
MEMBCARD_NO,
COUPON_TYPE,
SESSION_CODE,
THROUGH_FLG,
OPTER_ID,
OPTER,
REFUND_REASON_DESC,
CRT_DATETIME,
IS_RETURN)
select
REPLACE(uuid(),‘-‘,‘‘),
TRADE_DATE,
‘‘ , -- 影院内码
OPT_TYPE,
TRADE_CHANL,
FILM_CD,
HALL_CD,
‘‘ as CINEMA_NAME, -- 影院名称
FILM_NAME,
SHOW_DATE,
SHOW_TIME,
TICKET_TYPE,
TICKET_GROUP,
BOOKING_ID,
TICKET_NO,
SEQ_NO,
ROW_ID,
COL_ID,
PAYMENT_SEQ,
PAYMENT_TYPE,
PAYMENT_AMT,
PAYMENT_NUM,
TICKET_AMT,
MEMBCARD_NO,
COUPON_TYPE,
SESSION_CODE,
THROUGH_FLG,
OPTER_ID,
OPTER,
REFUND_REASON_DESC,
CRT_DATETIME,
IS_RETURN
from RPT_TR_CINEMA_TICKET_TRADE_DETAIL
where SCINEMA_CD=‘1843‘
标签:
原文地址:http://www.cnblogs.com/zipon/p/5620510.html