欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

oracle里面怎么字符串轉成number

呂致盈2年前16瀏覽0評論

oracle里面怎么字符串轉成number?

WITH t AS (SELECT 'abcdefghijklmn' AS a FROM dual UNION ALL SELECT 'abcdefgh' AS a FROM dual UNION ALL SELECT 'abcd' AS a FROM dual) SELECT CASE WHEN length(lpad(t.a, 8, '0')) = 8 THEN lpad(t.a, 8, '0'

) ELSE substr(t.a, 1, 8) END AS a FROM t