邦定变量问题
sql2:='create table temp_mytable1 as select SERV_ID,CALLING_NBR,CALLING_DATE,ticket_id,TICKET_TYPEfrom tollcdr_200508_00@db_wlmq
where rownum<10 and calling_date=:c_date';
execute immediate sql2 using current_date; sql2:='create table temp_mytable1 as select SERV_ID,CALLING_NBR,CALLING_DATE,ticket_id,TICKET_TYPE
from tollcdr_200508_00@db_wlmq
where rownum<10 and calling_date=(to_char(sysdate-1,''yyyymmdd''))';
execute immediate sql2;
页:
[1]