【发布时间】:2021-07-15 11:32:29
【问题描述】:
您好,我有 2 张桌子学生和教师 我想将它们称为我的索引(视图),所以我想出了如何加入它们。但我有一个问题,我需要将这两个表分成一个类别,但我不知道代码。有人可以帮帮我吗?
public function getStudentReguler()
{
return $this->db->table('student')
->join('faculty', 'faculty.id_faculty = student.id_student')
->where('category', *i want to be like, where categor = A*)
->get()->getResultArray();
}
谢谢
【问题讨论】:
标签: php sql codeigniter-4