移植性一直是Oracle的強項,看來這次也不例外.http://www.eweek.com/article2/0,1759,1618428,00.aspThe Redwood Shores, Calif., database behemoth will announce Wednesday at Apple Computer Inc.'s annual Worldwide Developers Conference and at the JavaOne developer conference,
Q. What if your Dad loses his car keys?A. 'Parent keys not found!'Q. What if your old girl friend spots you with your new one?A. 'Duplicate value on index!'Q. What if the golf ball doesn't get into the hole at all?A. 'Value larger than specified
動態SQL的使用Oracle實際上比SQL Server好一些,但絕對沒有傳說中那麼強。這是這些天一識Oracle廬山真面目的感受。看來好多事情多如此,聽的要比見到的完美。接著第一句說,Oracle的動態SQL就很棒,我專門學習了一下。記錄如下。先說說動態SQL是什麼,看這句熟悉的:select * from a_table where a_variable=a_declarevalue;再寫句動態:select * from a_table where
建立使用者create user ... identified by pwd; 刪除使用者drop user ... cascade;建立資料表空間create tablespace ts_drp datafile 'd:\drp-date.dbf' size 2000m將資料表空間分配給使用者alter user ... default tablespace ts_drp;授權grant dba(resource、CONNECT) to user回收許可權revoke
(1) Oracle中:insert into product (id,names, price, code) select 100,'a',1,1 from dual union select 101,'b',2,2 from dual;這裡最好用一次insert,不然效率不高,用多個select. (2)Mysql中:insert into 表名(id,name) values(1,'A'),(2,'B'),(3,'C') (3)SqlServer中:INSERTINTO table_
//聚集合函式max,min,avg,count,sumselect count(*) from dept;select count(deptno) from dept;//user,decode,nvlselect user from dual;select sum(decode(a1,'abc',1,0)),sum(decode(a1,'bca',1,0)) from aa;select a1,nvl(a2,'NULL') from aa;select * from aa where a2