Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 SQL Server 中有查询,但我不知道它在 mysql 中的等价物。sql代码是:
select username as t ,*from users
此代码在 sql 中运行,但此代码不在 mysql 中运行。有办法吗?
你可以做
select *, username as t from users
或者
select username as t, users.* from users
出于某种原因,在 MySQL 中,如果您首先指定特定列,则必须限定 *
您可以使用此代码:
select *,username as t from users