作为一个新手自己定义了个函数发现老是有一个错误:
create or replace function gd2(account in gt.account%TYPE,password in GT.PASSWORD%TYPE)
return VARCHAR2
is
begin
if(gd(account ,password)==1)then
dbms_output.put_line('登陆成功');
else
dbms_output.put_line('不存在该账户');
end if;
end;
错误是:错误(5,25): PLS-00103: 出现符号 "="在需要下列之一时: . ( ) , * % & = - + < / > at in is mod remainder not rem => <> or != or ~= >= <= <> and or like like2 like4 likec as between || multiset member submultiset
就是那个if的判断框里出错,我改为gd(account ,password):=1和gd(account ,password):==1都不行,这个该怎么办?
oracle函数赋值判断语句
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答
- danielinbiti 2015-05-28 10:03关注
if(gd(account ,password)==1)then 改成 if(gd(account ,password)=1)then
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 Python爬取指定微博话题下的内容,保存为txt
- ¥15 vue2登录调用后端接口如何实现
- ¥65 永磁型步进电机PID算法
- ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
- ¥88 找成都本地经验丰富懂小程序开发的技术大咖
- ¥15 如何处理复杂数据表格的除法运算
- ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
- ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
- ¥15 latex怎么处理论文引理引用参考文献
- ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?