); begin '; --在select into 后面添加exception 错误处理机制 exception when no_data_found then version:= 'hhh '; --以上是处理select into 的时候提示未找到数据的处理方法 if version is null or version ='' then INSERT INTO 表a (字段) ) from 表b ; ) ' ) '; commit; end if; end;
//在JS中,将text框中数据格式化,根据不同的小数位数,格式化成对应的XXX,XXX,XXX.XX(2位小数) 或者XXX,XXX,XXX(0位小数) function formatNum(num, n) {//参数说明:num 要格式化的数字 n 保留小数位 num = String(num.toFixed(n)); })/; while (re.test(num)) num = num.replace(re, "$1,$2") return num; }