확실하지 :
SELECT
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(
REPLACE(TRANSLATE ('1.233.234.234-12312312' -- example from you screenshot, subscriber_id goes here
, '.-' -- non-numeric characters in your data, extend if more possible
, 'AB') -- replacement for non-numeric characters in your data, extend if more possible
,'0','0000')
,'1','0001')
,'2','0010')
,'3','0011')
,'4','0100')
,'5','0101')
,'6','0110')
,'7','0111')
,'8','1000')
,'9','1001')
,'A','1010')
,'B','1011') -- extend to C, D, ... if more non-numerics in your data
AS bin
FROM dual
;
출처
2012-07-23 08:24:57
GWu