PL_SQL經常使用快捷鍵及設置

PL_SQL經常使用快捷鍵spa

一、 快速輸入;code

Tools-->Preferences-->User Interface-->Editor-->AutoReplace,將Enabled複選框的按鈕勾選上,點擊那個文件路,選中設置快鍵方式的文件,以下面的shortcuts.txt文件所示,而後再輸入的時候按下對應的快鍵鍵,而後按下space鍵,就能夠快鍵輸入了。get

shortcuts.txt文件格式以下所示:it

st = select t.*, t.rowid from  t
sc = select count(*) from
sf = select * from
sfe = select e.*, rowid fromio

s = select
f = from
w = where
o = order by
g = group by
fu = for updatetable

tel = select * from tbcs.subscriber@nxtbcs1 where servnumber = '
log = select e.*, rowid from rptacc.report_log e where rptcycle = 200701 and proc like '%%' and rptgroup like '%%' order by starttime desc
logl = select e.*, rowid from monitor.statl_create e where cycle = 20070101 and object_code like '%%'
loga = select e.*, rowid from rptcdr.smsnotify e where othertelnum = '13995000042' and notifytime >= trunc(sysdate) order by processtime
a = and
tdd = to_date('20070101','yyyymmdd')
d = dual
td = to_date('20070101 00:00:00','yyyymmdd hh24:mi:ss')
tc = to_char(sysdate,'yyyymmdd hh24:mi:ss')
tcc = to_char(sysdate,'yyyymmdd')
c=cycle
r=region
b=between
oida = select * from tbcs.subscriber@nxtbcs1 where oid =
spa=select tablespace_name, round((sum(spacesize) - sum(freesize)) / sum(spacesize) * 100, 2) userate, sum(spacesize) allspace, sum(freesize)  freespace, sum(spacesize) - sum(freesize) usespace from (select tablespace_name,round(sum(bytes) / 1024 / 1024, 2) spacesize,0 freesize from dba_data_files group by tablespace_name union all select tablespace_name,0 spacesize,round(sum(bytes) / 1024 / 1024, 2) freesize from dba_free_space group by tablespace_name) group by tablespace_name order by 2 desc;
soul=select * from dba_source where lower(text) like '%%'
souu=select * from dba_source where upper(text) like '%%'
sfd=select * from dict.dict_item where itemid = '
obj=select * from dba_objects where lower(object_name) like '%%' and object_type like '%%'
sfa = select e.*, rowid from dict.statd_parameter e where groupid like '%%' and  itemid like '%%' and misid like '%%'
sfg=select * from bak.statb_user_info where cycle = 200701 and region = 951 and servnumber = 'object

二、 執行date

F8file

三、 選取代碼select

Shift+Home,選中從光標到行首的代碼;

Shift+End:選中光標到行尾的代碼;

四、 智能提示

Alt+/

五、 執行過程

F5

PL_SQL經常使用設置

一、 智能提示

Tools-->Preferences-->User Interface-->Code Assistant-->選中Authomatically Activated

相關文章
相關標籤/搜索