显示目标表格的字段构成:
show create table target;
| target | CREATE TABLEtarget
(代码
text,截止日期
text)
SELECT 截止日期 from target limit 10; |
---|
截止日期 |
2014/12 |
2015/12 |
2016/12 |
2017/12 |
2018/12 |
2015/06 |
2016/06 |
2017/06 |
2018/06 |
2019/06 |
10 rows in set (0.00 sec)
我如何将这个字段 “截止日期” 转换成日期类型?
mysql有函数: