I have a column named as recordTime
in my Access DB table table1
.
This column is of TEXT
type right now, and most of its value are in format as: yyyy-mm-dd hh:nn:ss
, but there are also some wrong records like this: yyyy-mm- ::
.
Now I would like to change the data type of this column from TEXT
to DATETIME
. I tried with the following query but nothing happens:
ALTER TABLE table1
ALTER COLUMN recordTime DATETIME;
Am I doing it wrong?