Oracle 函数................................................................................................................................................3
单行函数...........................................................................................................................................3
字符函数...................................................................................................................................3
使用数字函数...........................................................................................................................3
使用日期函数...........................................................................................................................4
数据类型转换 cast....................................................................................................................5
转换函数和日期型...................................................................................................................5
空值的应用 NVL NVL2 NULL...............................................................................................7
Case decode 语句......................................................................................................................7
多行函数...........................................................................................................................................8
MIN,MAX 可以用于任何数据类型........................................................................................8
Count 统计数目........................................................................................................................8
分组函数 GROUP BY..............................................................................................................9
完整的 SELECT 查询语句的语法及执行顺序.....................................................................11
函数的嵌套.............................................................................................................................12
QUERY 查询语句...................................................................................................................................12
Oracle 8i 以前的老标准的多表连接.............................................................................................12
等值连接(=)...........................................................................................................................13
非等值练级(<,>,<>,<=,>=,betweennd,in,like)..............................................................13
外连接(+)...........................................................................................................................13
自连接.....................................................................................................................................13
Oracle 9i 以后的新标准多表连接.................................................................................................14
交叉连接(cross join)..........................................................................................................14
自然连接(natural join).......................................................................................................14
INNER 内链接(inner join..on…)即等值连接........................................................................14
Join..using................................................................................................................................15
左外连接(left outer join...on..)..........................................................................................15
右外连接(right outer join ..on..)........................................................................................15
全外连接(full outer join)........................................................................................................15
联合查询(Union)...............................................................................................................15
子查询.............................................................................................................................................16
单行子查询(<,>,<>,<=,>=,betweennd,in,like)..............................................................16
多行子查询(in,all,any).....................................................................................................16
DML 记录操作语句(insert,delete,update,merge)..................................................................................17
INSERT(插入记录)...........................................................................................................17
DELETE(删除记录)..........................................................................................................18
UPDATE(修改记录)..........................................................................................................18
MERGE...................................................................................................................................18
事物控制语句(commit/rollback).......................................................................................................18
DDL 语句 (create/drop/alter).............................................................................................................19
drop(表)......................................................................................................................................19
create (表)...................................................................................................................................19
子查询建表(AS)................................................................................................................19
alter(表字段)..............................................................................................................................20
增加字段(add)...................................................................................................................20