if @age!=null 改成 if @age is not null

解决方案 »

  1.   

    if @age!=null改为 if @age is not null
      

  2.   

    create proc myUpdate_age(@age tinyint=null)
    with recompile
    as
    if @age is not null
    update table set 年龄=@ageselect * from table
      

  3.   

    create proc myUpdate_age(@age tinyint=null)
    with recompile
    as
    if @age is not null
    update table set 年龄=@ageselect * from tablereturn
      

  4.   

    create proc myUpdate_age(@age tinyint=null)
    with recompile
    as
    if @age is not null
    update table set 年龄=@ageselect * from tablereturn