To quickly use PL/SQL developer for Oracle database-related development, summarize some of the more frequently used tips below, from the network and your own tests
1. Switch schema
--switch Schema
Alter session set current_schema= PO;
--get Current Context information
SelectSys_context ('USERENV','Current_User') Current_User, Sys_context ('USERENV','Current_schema') Current_schema fromDual
2. PL/SQL beautifier (PL/SQL beautification)
Sometimes we write the code format is not good-looking, in the menu, choose Edit-PL/SQL Beautifier, you can quickly get the layout of the good formatting code. For illegal DML statements or DDL statements, PLD will prompt PL/SQL Beautifier could not parse text in the status bar below.
In the default state, PLD will arrange each field of the DML statement in a separate line, so it is not easy to see. In the menu, choose Edit->pl/sql beautifier options, go to Preferences window, select Edit, go to Profile editing interface: Select DML in the tab bar in the middle of the window, In the Insert and update groups box, select Fit and click Save to save the configuration file to the PLD installation directory, and click Close. In the rules file, enter the location of the configuration file, click OK to complete the profile switch. Then you can format the code so that each field is as close as possible on one line.
3, PL/SQL developer remember login password
First set to save the login history password, and then next login as shown in the following method
PL/SQL Developer Usage Tips Summary