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.
我在mysql中写了一个这样的查询,但它不起作用
select name as [your name] from tUsers
如果我在别名中使用一个词,它会像这样正常工作
select name as [name] from tUsers
[]适用于 MSSQL。MySQL 有不同的语法
[]
select name as `your name` from tUsers
像文档建议的那样使用反引号。
顺便说一句,在任何[]情况下都对我不起作用。