想通过UPDATE语句吧某个字段的值更新为你null,如何写update语句呢!!

解决方案 »

  1.   

    打多了一个字,应该为:
    想通过UPDATE语句吧某个字段的值更新为null,如何写update语句呢!!
      

  2.   

    update tb
    set 列名=null
      

  3.   

    update 表 set 列=null
    where 你的条件
      

  4.   

    string bbb = string.Format("update users set NickName='{0}',Sex='{1}',Name='{2}',Age={3},StarId={4},BloodTypeId={5}", NickName, Sex, Name, Age, nullnull);红色部分这样写行吗??
      

  5.   

    不行,要这样string bbb = string.Format("update users set NickName='{0}',Sex='{1}',Name='{2}',Age={3},StarId={4},BloodTypeId={5}", NickName, Sex, Name, Age, 'null', 'null'); 
      

  6.   


    update tablename set 字段名=null where 条件
      

  7.   

    update 表名  set 字段值='null' where 条件
      

  8.   


    update tb set f=NULL where id=1
      

  9.   


    Update cCard set EmployeeID=1,FactoryFixID=null where cardid=0
      

  10.   

    没遇过SQL能解决这个问题的。关注。
      

  11.   


    update 表 set =null where ...
      

  12.   

    借楼主我想问一个update语句
    我就两张表 A和B
    update A set lqr=? where (B表中的条件要怎么写?)
    A表和B表有一个相同的字段!
      

  13.   

    update a set lqr=b.sfsd where a.ddd=b.ddd
    ================
    你的主要是调试问题,我觉得最后你发给MSSQL的SQL语句只要是
    Update cCard set EmployeeID=1,FactoryFixID=null where cardid=0
    这样就OK,
    但是绝对不要是
    Update cCard set EmployeeID=1,FactoryFixID='null' where cardid=0
      

  14.   

    update A set lqr=b.? from a,b where a.id=b.id and b.? between '?' and '?'
      

  15.   


    update  表
    set 列名=null
    where ‘条件'