I try to select all rows with ruby where the field is null. Either I get zero results or the statement is invalid. So far I tried:
db.query("SELECT * FROM names where name is null;")
db.query("SELECT * FROM names where name is nil;")
db.query("SELECT * FROM names where name is #{null};")
db.query("SELECT * FROM names where name is #{nil};")
How should the select statement be?
i use ruby and mysql2 gem