str:='select * from table1 where  '||'''update='''''||:new.UPDATE||'';
这个语句该如何写。现在有错误

解决方案 »

  1.   

    :new表是触发器中的,按你的要求没有办法写。
      

  2.   

    那该如何改动.
    str:=''select * from table1 where  "update"='||to_date(||''||:new.UPDATE||''||,'YYYY-MM-DD HH:MI:SS');
      

  3.   

    是的在触发器中,请帮忙
    str:='''select * from table1 where  "update"=to_date('''||:new.UPDATE||''',''YYYY-MM-DD HH:MI:SS'')';
      

  4.   

    触发器不能select 基表,如果你的 table1是基表的话
      

  5.   

    可以select 基表,如果你的 table1是基表的话,需要加其他语法,这个没有问题
      

  6.   

    oracle里面的触发器肯定不能select基表的 你可以去试试看