this.da = new SqlDataAdapter("select 工号,上班时间 from cx where 工号=1",this.myConnection);
this.ds.Clear();
this.da.Fill(ds,"cxtj");
我想要的是ds中数据为2008-01-01 08:57:30
请问该怎么实现?
...全文
647打赏收藏
新手问个DataSet 填充问题???
这么一条SQL语句:select 工号,上班时间 from cx where 工号=1 在查询分析器中执行,'上班时间'字段的有条记录是这样的:2008-01-01 08:57:30.000 程序中如下填充后在ds.table["cxtj"]中该条记录变为2008-1-1 8:57:30 this.da = new SqlDataAdapter("select 工号,上班时间 from cx where 工号=1",this.myConnection); this.ds.Clear(); thi