1. Basic environment
Version: PL/SQL Developer 11 and above
Note: The versions used in this article are: 11.0.5.1790 and 12.0.7.1837. The operation methods are basically the same.
2. Usage scenarios
When we use PLSQL Developer to write SQL, we can set keywords to auto-complete to improve the efficiency of SQL writing.
3. Operation steps
1. Save the following code as shortcuts.txt (the file name can be arbitrary), and save the file to the installation directory PlugIns of PLSQL Developer (the path can be arbitrary). For example: D:\ProgramFiles\PLSQL Developer\PlugIns.
be = between and
c = commit;
cnt = select count(*) from
ct = create table
d = delete
dt = drop table purge
dv = drop view
e = exists
f = from
g = group by
h = having
i = insert
l = like '%%'
n = null
o = order by
s = select
sy = sysdate
tc = to_char(,'yyyy-mm-dd')
td = to_date('','yyyy-mm-dd')
tn = to_number()
u = update
w = where
2. Open PLSQL Developer (you do not need to log in to the database, click [Cancel] on the login interface)
PLSQL Developer 11 Click [Tools]-[Preferences...]
PLSQL Developer 12 Click [Configuration]-[Preferences...]
Then click [Editor] under [User Interface] on the left and find Automatic Replacement. Check [Enable] and enter the following path (or enter via the browse button below): D:\ProgramFiles\PLSQL Developer\PlugIns\shortcuts.txt Click [OK].
3. Restart PLSQL Developer, create a new SQL window, enter the content to the left of the equal sign and press the space, and it will automatically complete the content to the right of the equal sign.