求解,写了一个返回值是boolean的函数,不知道怎么调用
oracle吧
全部回复
仅看楼主
level 3
函数在此:
create or replace function first_digit(v_char varchar2)
return Boolean IS
BEGIN
IF(substr(v_char,1,1) IN (*0*,*1*,*2*,*3*,*4*,*5*,*6*,*7*,*8*,*9*)) THEN
RETURN true;
ELSE
RETURN false;
END IF;
EXCEPTION
WHEN OTHERS THEN
RETURN false;
END;
2014年08月06日 06点08分 1
level 3
select (case when first_digit(*jile*) then 1 else 0 end) t from dual
ORA-00920: 无效的关系运算符
2014年08月06日 06点08分 2
level 3
select * from employee where first_digit(*5seo*)
同样的报错
2014年08月06日 06点08分 4
level 3
求大神指教[乖]
2014年08月06日 06点08分 5
[呼~]为什么发上来单引号全部变成了星号
2014年08月06日 06点08分
1