Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql select field if condition

select IF('fieldname with condition','if true value','if false value') from table_name where 1;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #select #field #condition
ADD COMMENT
Topic
Name
8+6 =