SELECT * FROM events WHERE repeat IS NOT NULL
Hello! I have the error when do this select:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IS NOT NULL' at line 2
But It is ok if I do the same select with user_id for example:
SELECT * FROM events WHERE user_id IS NOT NULL
I am wondering, because name of the column is correct
Structure of my table:
create_table "events", :force => true do |t|
t.string "title"
t.date "shedule"
t.integer "user_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "repeat"
end