Hoe IF
te gebruiken statement in select
select if(status>0, 'active', 'inactive') as status from users
Ja, u kunt select
. gebruiken binnen IF
Voorbeeld:
select if((select count(*) from versions) > (select count(*) from groups), true, false) as value