mysql 日期对比,varchar类型装换为datetime类型

select * from tb_gps WHERE str_to_date(intime,'%Y-%m-%d %H:%i:%s') BETWEEN '2013-9-2 14:40:33' and '2013-9-2 14:41:13'

 

效果图:

posted on   小东北  阅读(769)  评论(0编辑  收藏  举报
努力加载评论中...

点击右上角即可分享
微信分享提示