如何在codeigniter中实现插入函数编码(3)

时间:2019-02-15 09:31:32

标签: java codeigniter-3

如何在我的代码中插入一个codeigniter(3)。下面是我的代码示例:

代码示例

public function teams() {
        $query = $this->db->query("SELECT tbl_team.team_id, tbl_thesis.thesis_title,tbl_team.leader,tbl_team.member_one,tbl_team.member_two,tbl_team.member_three, adviser_name,tbl_defense_sched.`panel_one`,tbl_defense_sched.`panel_two`,tbl_defense_sched.`panel_three`
        FROM tbl_team
        JOIN tbl_thesis
        JOIN tbl_adviser
        JOIN tbl_defense_sched
        WHERE tbl_team.team_id = tbl_thesis.team_id
        AND tbl_team.adviser_id = tbl_adviser.adviser_id
        AND tbl_team.team_id = tbl_defense_sched.team_id
        AND tbl_team.team_id NOT IN (SELECT team_id FROM thesis_concept)");
        return $query->result();
    }

0 个答案:

没有答案