Comments - EXCEPT

4 years, 7 months ago Charles Leifer

The note about parentheses is not quite accurate for 10.4. Parentheses can be used in some situations, but as of 10.4.8, attempting to use parentheses around a compound select that is inside an IN() expression (for example) will not be parsed:

This does not work:

select * from people where id in (
    (select id from people where name = 'foo')
    union
    (select id from people where name = 'bar'))
 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.