写程序时 select * 速度比直接写列名要慢,需要转换
null算数运算后还是null ||操作还是原来的值
distinct a,b,c 选择的所有列都不同时才去除
where 子句不能用别名
between and 相当于大于等于>= 小于等于<=
in 相当于 or
like % _
where job_id like '%sa/_%' escape '/';
to_number('-$12,345.67','$99,999.99')
select count(expr) from .. 返回not null 的expr数量
聚集函数 如 avg(nvl(exp,0)) 缺省情况下 值为null行不参加计算
where 子句不能用聚集函数 用group by ..having ..
ddl dcl auto commit
can't modify view: group by|distinct|rownum|column is expression|not null column not select by the view
view create with read only 只读视图
pk |unique constraint create a unique index automatelly