参考:
oracle | 10g |
navicat | 11.1 |
1 、 查看版本
##方法一、
SELECT * from v$VERSION;
##方法二、
select * from PRODUCT_COMPONENT_VERSION ;
2、EXISTS
3、DECODE
DECODE(value,if1,then1,if2,then2,if3,then3,...,else),表示如果value 等于if1时,DECODE函数的结果返回then1
4、CASE
5、 LENGTH LENGTHB SUBSTR SUBTRB
- length表示的是字符串的字符长度,
- lengthb表示的是字符串的字节长度;
- substr表示根据字符长度获取子串,
- substrb表示根据字节长度来获取字串
- 可以用length(‘string')=lengthb(‘string')判断字符串是否含有中文。
6、 to_char
https://www.cnblogs.com/aipan/p/7941917.html
7 Union and Union all
Oracle 中 union 和union all 的简单使用说明
8、MERGE INTO
单表
https://www.cnblogs.com/relucent/p/4166544.html
多表
https://blog.csdn.net/jeryjeryjery/article/details/70047022