1.2.2 PostgreSQL
1.2.2.1 S6 语句
查看查询执行计划,子查询被优化(采用物化的方式,使得子查询结果被缓存,既子查询只执行一次)。
postgres=# EXPLAIN SELECT * FROM t3 WHERE b3 >= ANY (SELECT b1 FROM t1);
Nested Loop Semi Join (cost=0.00..41707.39 rows=680 )
Join Filter: (t3.b3 >= t1.b1)
-> Seq Scan on t3 (cost=0.00..30.40 rows=2040 )
-> Materialize (cost=0.00..40.60 rows=2040 )
-> Seq Scan on t1 (cost=0.00..30.40 rows=2040 )
1.2.2.2 S7 语句
查看查询执行计划,子查询被优化(采用半连接)。
postgres=# EXPLAIN SELECT * FROM t3 WHERE b3 >= ANY (SELECT a1 FROM t1);
Nested Loop Semi Join (cost=0.15..377.82 rows=680 )
-> Seq Scan on t3 (cost=0.00..30.40 rows=2040 )
-> Index Only Scan using t1_a1_key on t1 (cost=0.15..12.08 rows=680 )
Index Cond: (a1 <= t3.b3)
1.2.2.3 S8 语句
查看查询执行计划,子查询被优化(采用半连接)。
postgres=# EXPLAIN SELECT * FROM t3 WHERE b3 <= SOME (SELECT a1 FROM t1);
Nested Loop Semi Join (cost=0.15..377.82 rows=680 )
-> Seq Scan on t3 (cost=0.00..30.40 rows=2040 )
-> Index Only Scan using t1_a1_key on t1 (cost=0.15..12.08 rows=680 )
Index Cond: (a1 >= t3.b3)
1.2.2.4 S9 语句
查看查询执行计划,子查询被优化。
postgres=# EXPLAIN SELECT * FROM t3 WHERE b3 = SOME (SELECT a1 FROM t1);
Hash Semi Join (cost=55.90..103.00 rows=1020 )
Hash Cond: (t3.b3 = t1.a1)
-> Seq Scan on t3 (cost=0.00..30.40 rows=2040 )
-> Hash (cost=30.40..30.40 rows=2040 )
-> Seq Sc
疯狂医院达什医生中文版(Crazy Hospital)
疯狂医院达什医生最新版是一款医院模拟经营类游戏,逼真的场景画
宝宝庄园官方版
宝宝庄园官方版是一款超级经典好玩的模拟经营类型的手游,这个游
桃源记官方正版
桃源记是一款休闲娱乐类的水墨手绘风格打造的模拟经营手游。玩家
长途巴士模拟器手机版
长途巴士模拟器汉化版是一款十分比真好玩的大巴车模拟驾驶运营类
房东模拟器最新版2024
房东模拟器中文版是一个超级有趣的模拟经营类型的手游,这个游戏