设置参数,GC
"SELECT to_char(sysdate-1,'yyyymmdd') as WADAT_F,to_char(sysdate,'yyyymmdd') as WADAT_T,'8080' AS VKORG_F,'"+GC+"' AS VSTEL_F,'20' AS SPART_F,'' AS AUART_F FROM DUAL"
修改答案
SELECT to_char(sysdate-1,'yyyymmdd') as WADAT_F,to_char(sysdate,'yyyymmdd') as WADAT_T,'8080' AS VKORG_F,'6000' AS VSTEL_F,'20' AS SPART_F,'' AS AUART_F FROM DUAL
UNION ALL
SELECT to_char(sysdate-1,'yyyymmdd') as WADAT_F,to_char(sysdate,'yyyymmdd') as WADAT_T,'8060' AS VKORG_F,'6000' AS VSTEL_F,'20' AS SPART_F,'' AS AUART_F FROM DUAL
UNION ALL
SELECT to_char(sysdate-1,'yyyymmdd') as WADAT_F,to_char(sysdate,'yyyymmdd') as WADAT_T,'8000' AS VKORG_F,'6000' AS VSTEL_F,'20' AS SPART_F,'' AS AUART_F FROM DUAL
UNION ALL
SELECT to_char(sysdate-1,'yyyymmdd') as WADAT_F,to_char(sysdate,'yyyymmdd') as WADAT_T,'6000' AS VKORG_F,'6000' AS VSTEL_F,'20' AS SPART_F,'' AS AUART_F FROM DUAL
UNION ALL
SELECT to_char(sysdate-1,'yyyymmdd') as WADAT_F,to_char(sysdate,'yyyymmdd') as WADAT_T,'9100' AS VKORG_F,'6000' AS VSTEL_F,'20' AS SPART_F,'' AS AUART_F FROM DUAL