insert into tbl (test1,test2,test3) values(null,null,'...')where test1 is not null

解决方案 »

  1.   

    create fountion get(p_test1 table.test1%type)
    return varchar2
    as
    vv varchar2(10):=null;
    begin
    if p_test1 is not null then
    return(vv);
    end if
    return(vv);
    end;
    /select get(test1) from table where tes1 is not null and test2 is not null;
      

  2.   

    如果我用update ...set,那该怎么写?包括字符串和数字。
    谢谢!
      

  3.   

    update table_name set test1=null where test1 is not null;
      

  4.   

    update table set field1=null 即可