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';

 

posted on 2025-03-04 18:32  oktokeep  阅读(7)  评论(0)    收藏  举报