日期:2014-05-20  浏览次数:20825 次

C#如何更新数据库的部分字段为空
在Access数据库BPR表中,有a,b,c,……等字段
a,b均为“文本”类型,且不为空
现在想使用update语句,使a,b的值为空,该如何写啊??
update   BPR   set   a= ' ',b= ' ',c=0   where   id=1------错误语句

谢谢!!

------解决方案--------------------
update BPR set a=null ...........
------解决方案--------------------
update tablename set fieldname=null where key=keyname