5
Writing a query
in Mysql I came across this doubt, I made a search, however, I found nothing (or did not know how to look for), the doubt is simple, there is some difference between using or not the as
when creating a temporary name for Mysql columns?
Example:
In the example below I used the as
to define the temporary name:
SELECT nome_titulo as Titulo, nome_exibicao as 'Nome de Exibição' , created_at as 'Data de Criação' FROM moneyguard_database.titulos;
Already in this example I did not use just passed the temporary name aside:
SELECT nome_titulo Titulo, nome_exibicao 'Nome de Exibição' , created_at 'Data de Criação' FROM moneyguard_database.titulos;
In both cases I have the same result, is that there is some different performance or some case that one form is better than the other?
Thanks in advance for the clarification.