这里对查询计划的学习主要是对TPC-H中Query2的分析. 1.Query的查询语句 select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = and p_ty…
一.编译环境 Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) greenplum 5.3.0 二.编译过程 2.1.下载greenplum源码 可从该位置下载需要的版本:https://github.com/greenplum-db/gpdb/releases/(此处使用5.3.0) 2.2.解压…
1.使用mysql的union all可以同时查询出所有自己想要查询数据表的数据量. select 'user' as tablename, count(*) from user union all select 'teacher' as tablename, count(*) from teacher union all select 'person' as tablename, count(*) from person union all select 'student' as tablen…