mysql if条件等于号是单符号,而不是双等于号
mysql if条件等于号是单符号,而不是双等于号
select t6.`order_no`, if(t6.`is_get_book` = 1,'是','否') as '是否借书', if(t6.`is_return_book` = 1,'是','否') as '是否还书' from `order` t6 where `order_no` ='tt112255';
mysql if条件等于号是单符号,而不是双等于号
select t6.`order_no`, if(t6.`is_get_book` = 1,'是','否') as '是否借书', if(t6.`is_return_book` = 1,'是','否') as '是否还书' from `order` t6 where `order_no` ='tt112255';