111,120
社区成员
发帖
与我相关
我的任务
分享
OleDbCommand oledbcommand;
oledbcommand.CommandText = "select * from 表名 where n=@n"; //n为表中的日期列名
oledbcommand.Parameters.Add("@n", OleDbType.DBDate);
oledbcommand.Parameters["@n"].Value = xxxxxxx;
sqlcommand.CommandText = "select * from 表名 where n=@n"; //n为表中的日期列名
sqlcommand.Parameters.Add("@n", SqlDbType.DateTime);
sqlcommand.Parameters["@n"].Value = xxxxxxx;