I need a mysql query to extract a year from the following date format from a table in my database.
For example,
subdateshow ---------------- 01/17/2009 01/17/2009 01/17/2009 01/17/2009 01/17/2009
following request did not work
select YEAR ( subdateshow ) from table
The column type is varchar. Is there any way to solve this?
mysql
Renjith R Jan 03 2018-12-12T00: 00Z
source share