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 查询,我想按类型、顺序和类别对数据库进行排序。我可以查询所有这三个吗?
select * from t_person where name=xyz order by type,category,order
尝试这个:
使用""(双引号)转义保留关键字顺序
""
select * from t_person where name='xyz' order by type,category,"order"
使用双引号进行正确查询: