Erp100论坛's Archiver

xiangzhao 发表于 2008-7-11 21:50

邦定变量问题

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=:c_date';
execute immediate sql2 using current_date;

xiangzhao 发表于 2008-7-11 21:50

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]

Powered by Discuz! Archiver 7.0.0  © 2001-2007 Comsenz Inc.