1. 程式人生 > >TP中如何用IF

TP中如何用IF

離職 true ber rfi col mobile pos 知識點 ext

將TP中這個容易忘的知識點記下來以便日後翻閱

      $memberField = "ID, NAME, MOBILE, MEMBER_STATUS as status,
IF (MEMBER_STATUS = 10, true, false) member_status, IF(MEMBER_STATUS = 10, ‘在職‘, ‘離職‘) status_text";

TP中如何用IF