比如finereport中的sql:select ${TJFZ} from dual ;
${TJFZ}参数是前台传过来的,是个字符,怎么在sql语句中直接把它转为数字?
oracle: to_number() ,如果包含字符: select case when regexp_replace('22dd','[0-9,.]', '') IS NULL then to_number('22dd') else 0 end from dual