共有されていないすべてのデータを選択するにはどのようにクエリを変更しますかReportID
?一致しないデータを比較して表示する
のでreport.ReportID = Read_Report.ReportID
と一致して、report
クエリ
$this->db->select('report.Report_Name, report.ReportDate, report.ReportID')
->from('report')
->join('Read_Report', 'report.ReportID = Read_Report.ReportID')
->where('Read_Report.StaffID', $this->session->userdata("StaffID"));
$result = $this->db->get();
return $result->result();
どのコードでsqlを翻訳していますか? – scaisEdge
申し訳ありませんが、私はcodeigniter – Beep
を使用しています。これは選択文なので、raw SQLを送信できますか? –