日期:2014-05-16 浏览次数:20933 次
begin
ls_tmp_sql := 'select nvl(max(to_number(substr('||ls_fsjkzdm||','||ls_sub_num||'))),1) from '||ls_fsjkmc||'.'||ls_fsjkbm||' where '||ls_fsjkzdm||' like '||'''%'||ls_tmp_pre||'______%'||'''';
execute immediate ls_tmp_sql into lh_tmp1;
end;
declare
vstr_sql varchar2(4000);
begin
vstr_sql :='select 1 from dual where dummy like ''%'
------解决方案--------------------
&abc
------解决方案--------------------
'%''';
dbms_output.put_line(vstr_sql);
end;
select 1 from dual where dummy like '%dsfsd%'