oracle中將駝峰格式轉換為下劃線格式
SELECT REGEXP_REPLACE('initCustMoney', '([[:upper:]])(.)', '_\1\2') "initCustMoney",
REGEXP_REPLACE('custID', '([[:upper:]])(.)', '_\1\2') "custID"
FROM DUAL;
下劃線->駝峰select substr(replace(initcap('a' || 'init_cust_money'), '_', ''), 2) from dual;