表&数据 ),buy ),price NUMBER); ); ); ); 原来的结果 SELECT * FROM PEOPLEBUY ORDER BY PEOPLE; 想要的结果 SELECT PEOPLE, LISTAGG(BUY, ',') WITHIN GROUP(ORDER BY BUY DESC) AS BUY, SUM(PRICE) TOTAL FROM PEOPLEBUY GROUP BY PEOPLE ORDER BY PEOPLE 用法 LISTAGG(measure_expr
------------基本查询--1.查询出的是一张虚拟的结果表-----基本语法---- * 所有列(字段)select * from emps; -----查询指定字段select employee_id,first_name||last_name,salary from emps; ----根据条件查询select * from emps where first_name||last_name='StevenKing'; ---查询部门编号100下的所有员工的姓名,编号,系统当前时间se