2021年5月3日 星期一

Oracle column to UNICODE

SELECT
    x,
    utl_raw.cast_to_raw(x),
    y,
    utl_raw.cast_to_raw(y),
    asciistr(x),
    asciistr(y)
FROM
    (
        SELECT
            unistr('\4E2D')     AS x,
            '中'                 AS y
        FROM
            dual
    );