此函数用来判断传入的字符串参数是否全是字母数字的组合
来源:互联网 发布:宏编程文件 编辑:程序博客网 时间:2024/05/04 10:36
create or replace function fun_onlynumchar(str in varchar2,flag in number) return integer is
len number;
temp varchar2(10);
begin
if str is null then
return(0);
end if;
len := length(str);
if flag=2 then
for i in 1 .. len loop
temp := substr(str, i, 1);
if ascii(temp) < 48 then
return(0);
elsif ascii(temp) > 57 and ascii(temp) < 65 then
return(0);
elsif ascii(temp) > 90 and ascii(temp) < 97 then
return(0);
elsif ascii(temp) > 122 then
return(0);
end if;
end loop;
elsif flag=0 then
for i in 1 .. len loop
temp := substr(str, i, 1);
if ascii(temp) < 48 then
return(0);
elsif ascii(temp) > 57 then
return(0);
end if;
end loop;
elsif flag=1 then
for i in 1 .. len loop
temp := substr(str, i, 1);
if ascii(temp) < 65 then
return(0);
elsif ascii(temp) > 90 and ascii(temp) < 97 then
return(0);
elsif ascii(temp) > 122 then
return(0);
end if;
end loop;
end if;
return(1);
end fun_onlynumchar;
- 此函数用来判断传入的字符串参数是否全是字母数字的组合
- 判断传入的参数是否是数组
- 判断 a[i]是否是字母或数字的函数
- //判断输入的字符串是否全是整形数字
- 一个高效判断字符串是否全数字的函数
- 一个高效判断字符串是否全数字的函数
- Delphi判断字符串是否是数字、字母、大小写字母
- Delphi判断字符串是否是数字、字母、大小写字母
- Delphi判断字符串是否是数字、字母、大小写字母
- java中判断传入的字符串是否是时间格式
- 判断字符串是否全是数字
- 判断一个字符串是否全是数字
- 判断给定的字符串是否是数字
- C# 正则表达式判断是否是数字、是否含有中文、是否是数字字母组合
- oracle判断是否是数字的函数
- Android 判断字符串是数字、中文还是字母的方法
- 判断一个字符串是否全是数字的多种方法及其性能比较(C#实现)
- 判断字符串是否全是数字的方法及性能比较
- 在Struts2中使用JSON AJAX
- 高斯映射
- 禁用 SSH 远程主机的公钥检查
- 解决 Agent admitted failure to sign using the key 问题 with ssh
- Windows Phone真机抓包并分析应用程序的网络通讯(Android、iPhone也适用)
- 此函数用来判断传入的字符串参数是否全是字母数字的组合
- USACO Section 2.3 The Longest Prefix - 一点点DP思想
- 对象池的创建 c#学习
- 谈谈关于UI的设计布局
- SpiderDuck与NoSQL – Twitter实时URL抓取服务架构
- 数据挖掘概念(Analysis Services - 数据挖掘)
- 本地的MTU比网关的MTU大时导致remoting频繁访问服务端错误
- 私有成员、SET方法、构造函数、访问权限、委托与事件
- 浅谈测试驱动开发(TDD)