现在数据库中有两个字段,a和b select * from table1 order by b asc 只能对b进行升序排列,怎么写这个sql语句能让b成为第一排序,在b相等的情况下对a进行第二排序?
------解决方案--------------------------------------------------------
- SQL code
select * from table1 order by b asc, a asc
select * from table1 order by b asc, a asc