PL/SQL 中部分使用小技巧

 1. 出现数值为NULL时,sal+common 换成 sal+NVL(common,0)

2. order by thing ASC   默认升序   降序为: order by things DESC;当需要使用多列进行排序时,可以如下:order by thing asc, otherthings desc;

3. delete from tablename 只是删除表中的数据,表空间不变,truncate table tablename. 能快速删除表数据和表空间,速度更快。

 

posted on 2014-02-12 09:25  love_Jason  阅读(142)  评论(0)    收藏  举报