[转]Oracle,sql server的空值(null)判断
sql server
替换null:isnull(arg,value)
如:select isnull(price,0.0) from orders ,如果price为null的话,用0.0替换
与null比较: is not null,is null
如 select * from orders where price is null ,price等于null
如: select * from orders where price is not null , price不等于null
Oracle
替换null: nvl(arg,value)
如: select nvl(price,0.0) form orders
与null比较: is not null,is null
如 select * from orders where price is null ,price等于null
如: select * from orders where price is not null , price不等于null
相关文档:
学习Oracle DBA也半个多学期了,今天猛然才发现,原来我的书还是很新的,上课操作时候也只是知道大概怎么做,但是要真的全部自己做,而不去翻书还是有一定的难度的,所以呢,今天开始将DBA从头复习一遍,同时再操作一遍。
第一章,学的是Oracle的体系结构� ......
SVRMGR> select * from dba_jobs;
初始化相关参数job_queue_processes
alter system set job_queue_processes=39 scope=spfile;//最大值不能超过1000 ;job_queue_interval = 10 //调度作业刷新频率秒为单位
DBA_JOBS describes all jobs in the database.
USER_JOBS describes all jobs owned by the c ......
今天在一本书上看到的,感觉挺全的。印象中自己已经不知道百度了多少次这个问题,今天就记下来吧,方便以后查询。
数据库写进程在以下事件之一发生时把数据库高速缓冲区的数据写到数据文件上:
当脏缓冲区的数量超过了所设定的限额
当所设定的时间间隔已到
当有进程需要数据库高速缓冲区却找不到空闲的缓冲区时
当检查� ......
故障解决:oracle10g 数据库复制同步
呵呵。oracle我是个菜鸟,没花功夫研究它,但我还是兼任dba,目前oracle全部是由以前的dba创建的,oracle确实好。基本没有出过问题,我也就基本不管它了,可是由于自己粗心大意,在一次修改服务器地址时候,数据库里的tns...这个配置文件忘了修改,结果导致同步失败,等我发现的时候, ......
sql三表联合查询
a表:迟到记录表---------------------------------------------------------------------------------------------------------------------
姓名 职工编号 &nb ......