SELECT *
          , FN_SY_CLASS_R01(type_cd,'CLASS_NM') type_cd_nm
FROM BD_BBS_QNA
WHERE 1 = 1
AND bd_bbs_qna_seq = :bd_bbs_qna_seq