【发布时间】:2015-01-28 10:53:11
【问题描述】:
我有 MySQL 表
id product p_image
1 G images\20131030164545.jpg
2 S images\20131230164545.jpg
3 V images\20140110164545.jpg
4 R images\20140320164545.jpg
5 K images\20140526164545.jpg
6 L images\20150110164545.jpg
7 SK images\20150120164545.jpg
这里我需要从上表中提取两个日期之间的 p_image 时间戳的产品(例如我需要从 2013/12/01 到 2014/07/30 日期提取)
在此查询中,我需要从字符串“images\20140526164545.jpg”中提取时间戳并将其转换为日期格式并选择两个日期之间的值。
【问题讨论】: