直接以一个例子在说明,如DB2中有一个简单存储过程 selectAllUsers
1 2 3 4 5 6 7 |
CREATE procedure selectAllUsers DYNAMIC RESULT SETS 1 BEGIN DECLARE temp_cursor1 CURSOR WITH RETURN TO CLIENT FOR SELECT * FROM test; OPEN temp_cursor1; END; |
映射文件中关于存储过程内容如下 阅读全文 >>