0
Using the Mysql Database, intending to perform the query in a given table whose one of its fields data
has as type VARCHAR(8)
.
Query SQL - Current
SELECT `t_movimentacao`.`data` FROM t_movimentacao
WHERE `t_movimentacao`.`id` = '1';
Running the current query we get the following return: 23072019
| data |
- 23072019 -
Knowing that the string contains a date in the format dd/mm/yyyy, without the character of /
how we can format and customize this field directly in the same query.
I want an SQL Query - Formatting the date field to obey the second result in the query: 23/07/2019
| data |
- 23/07/2019 -
How to format the string to place the /
and receive the date in the desired format directly in SQL?
Thank you very much friend, it worked perfectly! I knew that SQL has advanced query functionalities although I do not know them. I thank you for the soliciting spirit of all who have helped me here to solve the problem. Thank you.
– Guilherme Lima