WITH T (c1) AS (
SELECT LEVEL- 1 lv FROM DUAL CONNECT BY LEVEL <= 10
)
SELECT c1 , DECODE(MOD(c1,2),'0','여자','남자')
FROM T
by 손님
[2013.07.01 12:51:02]
SELECT * FROM t WHERE ( ( :성별구분 = 0 AND 1 = 1 ) -- 전체 OR ( :성별구분 = 1 AND a IN ( '1', '3', '5', '7', '9' ) ) -- 남자 OR ( :성별구분 = 2 AND a IN ( '2', '4', '6', '8', '0' ) ) -- 여자 )
by 손님
[2013.07.01 13:47:57]
답변 감사합니다. ^^
댓글등록
SQL문을 포맷에 맞게(깔끔하게) 등록하려면 code() 버튼을 클릭하여 작성 하시면 됩니다.