--将字符转换城数据-- CREATE OR REPLACE function CharToNumber(strNumber varchar2) RETURN NUMBER IS BEGIN RETURN (to_number(strNumber)); EXCEPTION WHEN others THEN RETURN (0); END ; / --调用-- SELECT CharToNumber(HHH) FROM bdlly.T10_XZMD;
将字符转成数字型
时间: 2024-10-13 15:08:54