SQL> call department_insert_test_users('BPM',100); 调用完成。 |
SQL> call delete_test_users('BPM'); 调用完成。 SQL> call delete_test_stru_organ(); 调用完成。 |
create or replace procedure delete_test_users(likecount in varchar2) is likecount2 varchar2(30); begin likecount2 :=likecount ||'%'; delete from TEST_USER_ROLE t where t.user_id like likecount2; delete from TEST_STRU_TYPE_REF t where t.user_id like likecount2; delete from TEST_USER_PROXY t where t.user_id like likecount2 or t.proxy_user_id like likecount2; delete from TEST_USER_DATAREF t where t.user_id like likecount2; commit; delete from TEST_USERS t where t.user_id like likecount2; commit; end delete_test_users; |
create or replace procedure delete_test_stru_organ is p_stru_id varchar2(30); p_organ_id varchar2(30); begin p_stru_id :='Sp_stru_id00113'; p_organ_id :='Op_organ_id0113'; delete from test_stru where STRU_ID=p_stru_id; delete from test_organ where organ_id=p_organ_id; delete from test_stru t where t.organ_id like 'vorgan_id%'; delete from test_organ t where t.organ_id like 'vorgan_id%'; commit; end delete_test_stru_organ; |
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |