C# access时间类型对比 Sql语句查询

string nowtime = DateTime.Now.Date.ToString();

string sql = string.Format("select * from Log where addTime <= #{0}#",nowtime);

 

//这里注意:access里面时间的比较,时间格式要严格:2009-1-18 1:36:00

 

 

 

 

友情链接:遨游官方论坛:http://www.7v7.cn/?fromuid=177

posted @ 2009-01-18 01:29  binlunia  阅读(278)  评论(0编辑  收藏  举报