SELECT TO_NUMBER('FF', 'XX'), TO_CHAR(255, 'XX') FROM DUAL;
TO_NUMBER('FF','XX') TO_CHAR(255,'XX')
-------------------- -----------------
255 FF
SELECT LEVEL AS NUM
, DECODE(BITAND(LEVEL, 128), 128, 1, 0)
|| DECODE(BITAND(LEVEL, 64), 64, 1, 0)
|| DECODE(BITAND(LEVEL, 32), 32, 1, 0)
|| DECODE(BITAND(LEVEL, 16), 16, 1, 0)
|| ' '
|| DECODE(BITAND(LEVEL, 8), 8, 1, 0)
|| DECODE(BITAND(LEVEL, 4), 4, 1, 0)
|| DECODE(BITAND(LEVEL, 2), 2, 1, 0)
|| DECODE(BITAND(LEVEL, 1), 1, 1, 0) AS BIT
FROM DUAL
CONNECT BY LEVEL <= 128;
NUM BIT
---------- --------------------
1 0000 0001
2 0000 0010
3 0000 0011
4 0000 0100
5 0000 0101
6 0000 0110
7 0000 0111
8 0000 1000
9 0000 1001
10 0000 1010
10진수 <-> 16진수 변환 및 BITAND 연산자
|
2013.04.20 01:44:32
|
2013.04.20 01:44:32
|
425
|
Aiden
Total of Attached file
0.00 Bytes of 0 files
2014.05.22
2014.05.13
2013.11.02
2013.09.17
2013.05.16
2013.04.20
2013.04.19
2013.03.24
2013.02.24
2013.02.23
2013.02.16