I have a field called submit_date which stores the value of a timestamp.
The field type is text – I want to convert it to INT – What is the safest way to do this?
Would converting to INT improve the performance?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The safest way is to try ALTERing the datatype in a testing setup (i.e. not on live database).
If this does not work, then you need to:
Yes, it should in general be faster.