查找数据表字段create_time 为 2013年6月15日(存储格式'dd-MM-yy' 即15-06-13)的记录,sql 语句如下
to_char(create_time,'dd-MM-yy') = '15-06-13'
文章标签 Sql根据时间查询数据 文章分类 数据库
查找数据表字段create_time 为 2013年6月15日(存储格式'dd-MM-yy' 即15-06-13)的记录,sql 语句如下
to_char(create_time,'dd-MM-yy') = '15-06-13'
上一篇:windows 查看端口使用情况
MySQL关于根据日期查询数据的sql语句
一般来说,我们在mysql数据库纪录数据时间时,都会选择datatime类型,这样时间可得数据内容就是2002年3月2日0点以后到200
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M