3
I have a database where I entered the dates in the format dd/mm/yyyy
(example: 05/11/1987
), but now I’m organizing some reports and need to update all dates in the database to the format yyyy-mm-dd
(1987-11-05
). How do I do this in Mysql?
Remembering that this is not a duplicate, because I want to update the data in the database and not select them in another format.
You need to update this data to this new format or bring (SELECT) in yyyy-mm-dd format?
– Felipe Douradinho
Good afternoon @Felipedouradinho, so I need to update this data to the new format.
– Cristiano Cardoso Silva
Maicon, it’s not duplicate.
– Felipe Douradinho
Is your field date? Or varchar? What does PHP have to do with this question?
– KaduAmaral
@Kaduamaral the answer of Felipe Douradinho solved here my problem the field and varchar but for me to change it to date had to make this update of the information otherwise I would lose them
– Cristiano Cardoso Silva
Correct @Cristianocardososilva, good that you have. ;) .
– KaduAmaral