Hi,
I have database with 'timestmp' field varchar(45) containing PHP timestamp (for example - May 19, 2009, 12:58 pm).
Is there any way to convert data type from varchar to timestamp without loosing existing data?
Or can I run a query like:
"SELECT * FROM projects WHERE DATE(TIMESTMP) IN ('$date1','$date2') AND USERID='$userid' AND STATUS='A' ORDER BY ID DESC";
with 'timestmp' field varchar(45)?
I have database with 'timestmp' field varchar(45) containing PHP timestamp (for example - May 19, 2009, 12:58 pm).
Is there any way to convert data type from varchar to timestamp without loosing existing data?
Or can I run a query like:
"SELECT * FROM projects WHERE DATE(TIMESTMP) IN ('$date1','$date2') AND USERID='$userid' AND STATUS='A' ORDER BY ID DESC";
with 'timestmp' field varchar(45)?