0

I have this code and i need to set it to NULL. What is the correct way?

$criteria->condition='tblvisit_batch_id=NULL'; 
1
  • It's not clear to me what you're asking for -- can you refine your question? Commented Jan 29, 2013 at 4:32

1 Answer 1

3

You should use correct SQL statement :

$criteria->condition='tblvisit_batch_id IS NULL';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.