Update cCard set EmployeeID=1,FactoryFixID=null where cardid=0
没遇过SQL能解决这个问题的。关注。
update 表 set =null where ...
借楼主我想问一个update语句 我就两张表 A和B update A set lqr=? where (B表中的条件要怎么写?) A表和B表有一个相同的字段!
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
update A set lqr=b.? from a,b where a.id=b.id and b.? between '?' and '?'
想通过UPDATE语句吧某个字段的值更新为null,如何写update语句呢!!
set 列名=null
where 你的条件
update tablename set 字段名=null where 条件
update tb set f=NULL where id=1
Update cCard set EmployeeID=1,FactoryFixID=null where cardid=0
update 表 set =null where ...
我就两张表 A和B
update A set lqr=? where (B表中的条件要怎么写?)
A表和B表有一个相同的字段!
================
你的主要是调试问题,我觉得最后你发给MSSQL的SQL语句只要是
Update cCard set EmployeeID=1,FactoryFixID=null where cardid=0
这样就OK,
但是绝对不要是
Update cCard set EmployeeID=1,FactoryFixID='null' where cardid=0
update 表
set 列名=null
where ‘条件'