数据库-编程技巧
1、执行动态语句
execute immediate 'select count(1) from '|| tablename into rtn;
execute immediate ‘字符串’ into 变量列表 using 变量列表 (into 是查询语句的结果赋值给变量。using 是吧变量的值传入语句中对应的:1,:2,…)
2、异常处理
exception when others then 异常处理语句 (要写在程序最后)
赞赏
长按二维码向我转账
受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。
已发送
发送中
微信扫一扫关注该公众号