最近开发项目时需要使用子查询,研究一番后得出结果: <?php // Sub Query $this->db->select('*'); $this->db->from('TableB'); $subQuery = $this-