我需要一个mysql查询来从我的数据库中的表中提取以下日期格式的年份。mysql从日期格式中提取年份
对于如:
subdateshow
----------------
01/17/2009
01/17/2009
01/17/2009
01/17/2009
01/17/2009
以下查询没有工作
select YEAR (subdateshow) from table
列的类型为varchar。有什么办法可以解决这个问题吗?
这是工作完美.. :) – 2012-01-03 13:20:48
如何把一个参数,在这里选择'其中year = X' – 2015-07-03 11:56:52
可以选中此我的问题http://stackoverflow.com/questions/31204869/mysql-php-pdo-select-a-part-of-row-value-date-record?noredirect=1#comment50412416_31204869 – 2015-07-03 12:02:38