我有一个SQL查询,我想在其中排序数据库的类型,订单和类别。我可以拥有这三个都有的查询吗?
select * from t_person where name=xyz order by type,category,order发布于 2012-10-15 19:09:10
试试这个:
使用"" (双引号)转义保留关键字order
select * from t_person where name='xyz'
order by type,category,"order"发布于 2012-10-15 19:12:02
对正确的查询使用双引号:
select * from t_person where name='xyz' order by type,category,"order"https://stackoverflow.com/questions/12894216
复制相似问题