更新数据库啊!
update yourtable set 时间字段="" where 时间字段='2004-12-12';

解决方案 »

  1.   

    update table1 set mydate=null
      

  2.   

    update table1 set 时间字段=null where 时间字段='2004-12-12';
      

  3.   

    update tableName set sj = null Where 条件
      

  4.   

    update table1 set 时间字段=null
      

  5.   

    这个字段不能设为.net 的null类型,必须设为DBnull才行
      

  6.   

    dim datanull as dbnulldim strsql as string
    strsql="update table1 set 时间字段=" & datanull.value 
      

  7.   

    楼上思路是对的,但是有两个错误
    1、dbnull的value属性是static的,不能用变量来引用,只能直接从类引用:DBNull.Value
    2、不能写到String里,这样什么也得不到,要写道SqlCommand的Parameter的值里:String updateCmd = "UPDATE tE SET V1 = @v1 WHERE V0 = 12345";
    SqlCommand myCommand = new SqlCommand(updateCmd, sqlCn);
    SqlParameter param = new SqlParameter("@v1", SqlDbType.NVarChar, 20);
    param.Value = DBNull.Value;
    myCommand.Parameters.Add(param);
      

  8.   

    update yourtable set 时间字段="" where 时间字段='2004-12-12';
    怎么能不可以呢?你到查询分析器中试试?不行的原因可能是你的时间字段非空吧。
      

  9.   

    先确保你的数据库对应字段的属性允许为空
    然后set datatime=NULL