SELECT * FROM certs WHERE id NOT IN (SELECT id_cer FROM revokace);
How do I write the above select statement in CodeIgniter active record?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
->where()support passing any string to it and it will use it in the query.You can try using this:
The
,NULL,FALSEin thewhere()tells CodeIgniter not to escape the query, which may mess it up.UPDATE: You can also check out the subquery library I wrote.