SQL> select distinct phone_number from student order by phone_number;
select distinct phone_number from student order by phone_number
*
ERROR at line 1:
ORA-01791: not a SELECTed expression
SQL>
可将SQL改成子查询:
SQL> select * from (select distinct phone_number from student order by phone_number);