Oracle存储过程
时间:2010-07-12 来源:wanglx0932
最近的个项目要用到存储过程,看了一些,记录在此。
1.定义存储过程:
create or replace procedure <porcedure_name>
is |
2.select into
SELECT col1,col2 into v_col1,v_col2 FROM typestruct where condition; |
将select查询的结果存入到变量中,可以同时将多个列存储多个变量中,必须有一条记录,否则抛出异常.
未完...
相关阅读 更多 +