在TOM老師的一書中,講這部分還是比較詳細的.但一般來說,基本的概念還是要很清晰的,因此筆記程式員日常要知道的東西1 定界分割(range) CREATE TABLE range_example( range_key_column date , data varchar2(20))PARTITION BY RANGE (range_key_column)( PARTITION part_1 VALUES LESS THAN (to_date('01/0
expdp/imdp,exp/imp的使用小結。其中expdp/imdp只能在服務端用,exp/imp兩者都可以使用。1 expdp 首先建立directory create directory dump as 'e:\dump'; 給許可權: grant read,write on directory dump to scott; 匯出表:expdp system/manager directory=dump dumpfile=a.dmp
mysql: select * from 表名 where pid=0 limit ((當前頁-1)*每頁顯示多少), 每頁顯示多少oracle: select * from( select rownum as rn,source.* from( sql語句 ) source where rownum <= (當前頁*每頁顯示多少) ) result where rn >=
MS SQLSERVER和ORACLE中取出表中按照某欄位排序的前N條記錄 這個題目看上去似乎那麼簡單, 兩種資料庫都提供ORDER BY 子句. 問題應該能夠迎刃而解吧. 先試一下MS SQLSERVER是怎麼做的: use Northwind;create table TestSort (ID integer);insert into testSort values (3);insert into testSort values (1);insert into testSort
create table test(a varchar2(20),b number(2))重名命alter table test rename to test1(rename test1 to test2)增刪欄位 alter table test2 drop column f修改欄位類型和大小alter table test2 modify d varchar(40)alter table test2 modify f varchar(40) alter table test2
轉自:http://blog.csdn.net/sharpnessdotnet/archive/2009/06/24/4294549.aspx 1.select d.id,d.outer_code from dict_depts_source d order by outer_code(查看重複資料)2.select d.id,d.outer_code,row_number() over(partition by outer_code order by outer_code)