我已将数据插入表中,该表中有一列名为current_date的类型
date和current_date为'2014-01-29'。但是问题是,每当我这样查询表时:
select *from tab;
它显示current_date为'2014-01-29',但是当我查询时
select current_date from tab;
它显示为“ 2014-01-29”。尽管我将其值设置为“ 2014-01-29”,但我无法理解为什么会这样。
最佳答案
尝试
select current_date, `current_date` from tab;
请注意这里的反引号:
关于mysql - 无法理解MySQL中查询的日期输出,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21453334/