1、执行动态语句

execute immediate 'select count(1) from '|| tablename into rtn; 

execute immediate ‘字符串’ into 变量列表 using 变量列表  (into 是查询语句的结果赋值给变量。using 是吧变量的值传入语句中对应的:1,:2,…)

 

2、异常处理

 

exception when others then 异常处理语句  (要写在程序最后)

 

相关文章:

  • 2021-09-17
  • 2022-01-06
  • 2021-10-21
  • 2021-09-20
  • 2022-02-25
  • 2021-12-23
猜你喜欢
  • 2021-10-19
  • 2021-09-07
  • 2022-02-20
  • 2021-11-05
  • 2021-08-06
  • 2021-08-24
相关资源
相似解决方案