TP中如何用IF

将TP中这个容易忘的知识点记下来以便日后翻阅

      $memberField = "ID, NAME, MOBILE, MEMBER_STATUS as status,
IF (MEMBER_STATUS = 10, true, false) member_status, IF(MEMBER_STATUS = 10, '在职', '离职') status_text";

posted @ 2018-01-18 14:34  Morning.glory  阅读(285)  评论(0编辑  收藏  举报