pl/sql developer工具几点妙用

相对而言,做oracle数据查询、更改时,本人较喜欢pl/sql developer,因为它居于多线程,不会锁屏;不太喜欢toad,它动不动就锁住屏幕。
但在查看过程或索引、分区等时,我则钟仪Toad的快捷及方便。

个人认为:pl/sql developer 是所有oracle第三方客户端软件中最方便使用者之一,比起Toad之动
不动就锁死屏幕不知好出多少倍。所以, 我喜欢使用它来查询数据。也许大伙都有过这样的体验,
输入命令或较长的表名时,我们经常打错字,特别是“select”和“From”这两个更是如此(我见
过许多人都打错它俩,打错“select” 的稍少些)。想起Toad自带的Auto_Replace功能,于是我就
在pl/sql developer中这晃晃,那瞧瞧,希望它本身也带有类似auto_replace的东西,结果始终没找着。
气恼之下,来到它老家http://www.allroundautomations.nl/plsqldev.html 点 add-ons链接
http://www.allroundautomations.nl/plsqldev.html后, 一项项细看,
最后终于看到了一个名叫shortcuts的外挂插件(PlugIn)
功能描述如下:
PL/Shortcuts
A handy utility that can help you if you feel that you're typing the same
things over and over again. You can create your own shortcuts (e.g. 's*' for
'select * from') and as soon as you type a shortcut in any editor it is
immediately replaced by the corresponding text.
New version! (Fixes Ctrl-Tab problem)
Developed by Tiger
Requirements Download
PL/SQL Developer 2.1 shortcuts.zip (version 1.2) 87 KB
迫不及待,下载shortcuts.zip
解压,读帮助文件,安装测试,哦。。。。。。成功了。
帮助文件如下:
Shortcuts PL/SQL Developer Plug-In
Just copy shortcuts.dll and shortcuts.txt to PlugIns folder & enjoy... tiger@softhome.net
------------------------------------------------------------------
安装完毕,重启pl/sql developer
菜单多出个 plugIns/shortcuts config....
选之,想怎么自动代换你就设吧。
比如设
qq=SELECT * FROM
那你在窗口中输入qq按空格
SELECT * FROM 就出来了
一些经常用的表 比如:bb_service_relation_t
我设个
bb=bb_service_relation_t
以后按 输入bb及空格就出来跳出 bb_service_relation_t来。
因为做过代换后,我们已不需要键入如此之多的字母,整个输入过程方便准确。
------------------------------------------------------------------
注:Toad 中自带如样的功能 edit/editor options/auto replace设完即可使用
我的pl/sql developer pl/shortcuts plugins 配置自动代换文件内容如下。
文件名:shortcuts.txt
/*qquser开头的这句只能写成一行,在此处只是方便理解我才分成三行*/
qquser=select a.apply_start_date,a.service_start_date,a.service_invalid_date,
a.user_id,a.if_valid,a.serving_status,a.*
from bb_service_relation_t a where service_id=
skind=service_kind
bsmenu=bs_favour_menu_t
qq=SELECT * FROM
bfg=bf_gather_fee_t
bfgh=bf_gather_fee_his_t
c_c=city_code
f_d=fee_date
bbms=bb_month_service_relation_t
bbs=bb_service_relation_t
qqlog=SELECT * FROM wcr_log_t WHERE TO_CHAR(report_time,'YYYYMMDD')=TO_CHAR(sysdate,'YYYYMMDD');
space=-----------------空行,预留
remn=--------------------------------------------------------------------------------------------
s_k=service_kind
s_b=special_bill
s_id=service_id
u_id=user_id
a_id=account_id
bbp=bb_user_product_info_t
rent=hnrpt_unicom_rent_mobile_t
bus=bb_bus_info_t
busd=bb_bus_detail_t;
event=apply_event
statust=bb_serving_status_t
查=select * from bb_service_relation_t where service_id='
allfee =fee1+fee2+fee3+fee4+fee11+fee12+fee13+fee14
rent_his=hnrpt_month_all_rent_his_t
his=hnrpt_month_all_rent_his_t
qqc=select count(*) from
pmon=TO_CHAR(ADD_MONTHS(SYSDATE,-1),'YYYYMM')
ren=hnrpt_unicom_rent_mobile_t
传仁=bb_weicr_bus_info_change_t;
附:很多人都认为用pl/sql developer查询时,不能象在Toad中一样,输入命令,按CtR+enter即可,
其实,前者要完成这个比后者更完美(后者在前后两句查询语句之间需要多输一行空行,前者只要一个分号作分隔)
实现方法:/Tool/Preferences/SQL Windows/选中 Auto Select Statement 确定后即可。不过执行时默认
快键是 F8 而不是 CTR+回车
想用CTR+回车可如下设置
/Tool/Preferences/key configuration/ 设一把即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值