select table update exist false or true mysql if else code example Example: if inside select mysql SELECT IF(1>3,'true','false');