I have a table table_a with the column field_b which format is string.
In that field their is written e.g. 01/06/2012.
I need to change it to 2012-06-01
I cannot change fields type etc.
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.
Most SQL engines have a substring() function. Use that together with concat() to create the new string:
(pseudocode)
Refer to your SQL server’s manual for details.