v_sql:='INSERT INTO tb_user_cert_name
select a.user_id,a.attr_code,a.attr_value,
to_char(a.start_date,''yyyymmdd'') start_date,to_char(a.end_date,''yyyymmdd'') end_date
from ucr_crm2_cdc.tf_f_user_item@lcllink9 a
where a.attr_code =''CertName''
and sysdate between start_date and end_date;
execute immediate v_sql;
commit;
v_sql:='INSERT INTO tmp_user_cert -- 这里报错了 请问一下这段sql是哪里有问题
select a.user_id,a.attr_code,a.attr_value,
substr(a.start_date,1,8) start_date,substr(a.end_date,1,8) end_date
from FORGRA.TAB_CBSS_D_USER_ITEM_ZY_'||V_day||'@LCLLINK1 A
where A.ATTR_CODE =''USE_CUST_NAME'';
execute immediate v_sql;
commit;
```