随笔分类 -  Oracle

与Oracle数据库相关的技巧和文章
oracle之TRUNC函数
摘要:TRUNC(number,num_digits) Number 需要截尾取整的数字。 Num_digits 用于指定取整精度的数字。Num_digits 的默认值为 0。如果Num_digits为正数,则截取小数点后Num_digits位;如果为负数,则先保留整数部分,然后从个位开始向前数,并将遇到 阅读全文
posted @ 2017-06-13 14:35 F风 阅读(43262) 评论(0) 推荐(2)
start with...connect by子句的浅用
摘要:start with的用法,其基本语法如下: select … from tablename start with 条件1connect by 条件2where 条件3; 但是我在pl/sql中写入以上格式的时候,竟然会报错!于是将where子句放在了from子句后面就成功了。 要想用到此种查询语句 阅读全文
posted @ 2017-06-09 10:54 F风 阅读(355) 评论(0) 推荐(0)