PL/SQL process: issue with wording

前端 未结 3 915
孤独总比滥情好
孤独总比滥情好 2021-01-27 10:44

I am trying to create a page process in Oracle APEX 4.1. Specifically, When a button on this page is process submitting the page, I want this PL/SQL query to work. I don\'t have

3条回答
  •  梦毁少年i
    2021-01-27 10:51

    If you whant do all this in a page process, you don't need to create procedure. Put this code in the source of your page process:

    BEGIN
      FOR indx IN (
        select *
         from EMPLOYEE
      ) LOOP
          APEX_UTIL.CREATE_USER(
            p_user_name    => indx.EMP_USERNAME,
            p_web_password => indx.EMP_PASSWORD,
            p_user_group => indx.EMP_GROUP,
          );
      END LOOP;
    END;
    

提交回复
热议问题