I have a column called "Time" this column is currently set to Varchar since i have some corrupted Time in some updates.Some Time has non ASCII characters etc. So how can i sort out all these corrupted and non properly formated time fields and set to NULL ? So that i can safely convert the Time column back to DateTime. The normal time fields in the updates are usually in the format of 2013-07-24 14:37:56
I was thinking of sorting it out by doing something like :
SELECT * FROM updates WHERE TIME not LIKE '....-..-.. ..:..:..'
But i don't know if that is the right regex approach and most efficient.