大哥,这是修改记录。
你要提取记录,还得写
select * from YourTable

解决方案 »

  1.   

    你说的在条件也包含修改字段,是不是?
    比如
    update  table1 set date='2002-02-12' where date='2002-12-12' and dd='sdf'是这个意思吗?
      

  2.   

    是的,尤其是条件还是用参数传递的,好象ORACLE中的参数传递和SQL中的不同!:(
      

  3.   

    update table set date='0000-00-00' where no=:a and up=:b and dis=:c;
    变量前加":"
      

  4.   

    用本地动态sql吧
    declare
      sqltext varchar(100);
    begin
      sqltext:='update table set date='0000-00-00' where no=:a and   up=:b and dis=:c;';
      execute immediate sqltext using b_value,c_value;
    end;
      

  5.   

    sqltext里的语句最后不要“;”号,不好意思