db2 stored procedures creation behavior
问题 I am playing with db2 stored procedures and I am struggling in understading the following concept. When I create a stored procedure like the simple below create or replace procedure test() begin insert into mytable(a) values ('a'); insert into mytable(a) values ('b'); insert into mytable(a) values ('c'); end I can see that the mytable gets filled during this creation. I was expecting to use 'call test()' to insert my data, but I can see it is not what I thought. What I am doing wrong here or