📜  mysql select field if condition - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:34.630000             🧑  作者: Mango

代码示例1
select IF('fieldname with condition','if true value','if false value') from table_name where 1;