how to put if condition into database code example Example: if inside select mysql SELECT IF(1>3,'true','false');