Skip to content
Advertisement

Mysql issue with WHERE in clause

What is wrong with my “where in” clause in mysql?

My two tables SEATS and REGISTERS look like this

The query to fetch the matching results is

Can someone figure out what’s wrong ? Thanks,

Advertisement

Answer

IN requires the list to be a literal list, not a comma-delimited string. Use FIND_IN_SET for that:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement