查看当前分区 select t.partition_name,t.num_rows from all_tab_partitions t where table_name='table_name' 单个分区 select count(*) as 记录数 from 表名 partition(分区名) ; 多个分区 (这个没有好的方法查询) select * from T_FQ_TEST PARTITION (PART_01)union allselect * from T_FQ_TEST PART
oracle表复杂查询--子查询 什么是子查询? 子查询是指嵌入在其它sql语句中的select语句,也叫嵌套查询. 单行子查询 单行子查询是指只返回一行数据的子查询语句. 请思考:如果显示与smith同一部门的所有员工? SQL>select * from emp where deptno=(select deptno from emp where ename='SMITH'); 将SMITH排除在外不显示 SQL>select * from emp where deptno=(select