mysql NULL value in where in CLAUSE
问题 how to deal with NULL value in mysql where in CLAUSE i try like SELECT * FROM mytable WHERE field IN(1,2,3,NULL) it not working only work like : SELECT * FROM mytable WHERE field IN(1,2,3) OR field IS NULL how can i get it work in WHERE IN ? it is possible ? 回答1: As by my understanding you want to pull every record with 1,2,3 and null value. I don't think its possible to put null in the IN operator. Its expects values and null is well.. not a value. So You really have to put the OR with the