oracle问题
如果三个字段的值除了数字和字母没有其他的符号,
那么最简单的方法是直接用字母和数字的比较, 因为数字比字母小。
严谨是方法是将三个字段转化正ascii码进行比较
0-9 的ascii的码是从48-57
delete from a
where ascii(字段1)>47 and ascii(字段1)47 and ascii(字段2)47 and ascii(字段3)47 and substr(temp_a。 field,i,1) <58 then
delete from a where id = temp_a。id;
exit;
end loop
end loop;
上述语法可能不完整,...全部
如果三个字段的值除了数字和字母没有其他的符号,
那么最简单的方法是直接用字母和数字的比较, 因为数字比字母小。
严谨是方法是将三个字段转化正ascii码进行比较
0-9 的ascii的码是从48-57
delete from a
where ascii(字段1)>47 and ascii(字段1)47 and ascii(字段2)47 and ascii(字段3)47 and substr(temp_a。
field,i,1) <58 then
delete from a where id = temp_a。id;
exit;
end loop
end loop;
上述语法可能不完整,只是叙述了个方法,谨供参考。
。收起