整了半天才整出来: string sql=string.format("insert into table values({0})","null"); 而取出来的时候又是这样: //初始化更新窗体里面的内容 public string InitForm(DataTable dt,string str) { return dt.Rows[0][str].ToString(); } if(InitForm(dt,"brithday")!="") memberUpdate.dtpBrith.Value = Convert.ToDateTime(InitForm(dt, "brithday"));