MYSQL - Select with Data Column Formatted with Convert

Asked

Viewed 22 times

0

I have the table(tbl) with the following field

id, date

date is a varchar field, which has dates in the following format: "dd/mm/yyyy"

I want to make a SELECT, date shown in ANSI format "yyyy-mm-dd".

I thought the following official instruction, but not:

SELECT CONVERT(datetime, date, 103) FROM tbl

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.