码迷,mamicode.com
首页 > 数据库 > 详细

Access 开发日记

时间:2017-10-27 17:48:02      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:转换   对比   记录   开发   access   from   sele   mat   时间   

时间的转换:

select format(‘2017-10-01 13:00:00‘,‘yyyy-MM-dd hh:mm:ss‘)

select cdate(‘2017-10-01 00:00:00‘)

时间的对比:使用 # 号包起来

select * from  生产记录 WHERE format(‘{0}‘,‘yyyy-MM-dd HH:mm:ss‘)<format(时间,‘yyyy-MM-dd HH:mm:ss‘) and format(时间,‘yyyy-MM-dd HH:mm:ss‘)<=format(‘{1}‘,‘yyyy-MM-dd HH:mm:ss‘) 

Access 开发日记

标签:转换   对比   记录   开发   access   from   sele   mat   时间   

原文地址:http://www.cnblogs.com/sky-gfan/p/7744093.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!