문제

I have query in SQL Server , but i don't know its equivalent in mysql. sql code is:

select username as t ,*from users

this code running in sql but this code not run in mysql. is there way?

도움이 되었습니까?

해결책 2

you can use this code :

select *,username as t from users

다른 팁

You can do either

select *, username as t from users

or

select username as t, users.* from users

for some reason in MySQL if you specify specific columns first you have to qualify the *

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top