Oracle Mix,大概就相當於Oracle的MSDN這樣一個網站。地址是 http://mix.oracle.com是由Oracle AppsLab開發的,用了JRuby on Rails,看這個blog:http://oracleappslab.com/2007/11/12/lets-mix/。而且ThoughtWorks在裡面起了重要的作用。 還有一本新書出來,叫Ruby on
編寫一個預存程序,要求可以輸入表名、每頁顯示記錄數和當前頁,返回總記錄數、總頁數和結果集--oracle的分頁select t1.*,rownum rn from (select * from emp) t1select t1.*,rownum rn from (select * from emp) t1 where rn<=10;--在分頁時,大家可以把下面的sql語句當作一個模板使用select * from(select t1.*,rownum rn from (select *
alter user scott account unlock; --解鎖scott使用者select * from scott.emp where to_char(hiredate,'yyyy-mm-dd')>'1982-1-1'; --日期比較select * from scott.emp where to_char(hiredate,'yyyy')='1980'; -- 入職時間年份為1980select * from scott.emp where
1、把主鍵定義為自動成長標識符類型在mysql中,如果把表的主鍵設為auto_increment類型,資料庫就會自動為主鍵賦值。例如:create table customers(id int auto_increment primary key not null, name varchar(15));insert into customers(name) values("name1"),("name2");select id from
Oracle查詢日期可以使用=但是在等號的兩邊必須資料類型一致,比如'2010-9-19'這是一個字串不能直接與日期類型欄位比較必須要進行日期轉換:日期轉換成字串 to_char(date,'yyyy-mm-dd')='2009-09-19'字串轉成日期 to_date('2009-9-19','yyyy-mm-dd')=trunc(date)日期本身可能會帶時分秒,需要注意1、查詢時間類型欄位的某個時間的值select count(*) from T_date_table where
create table lck (a number, b number);insert into lck values (1,2);insert into lck values (2,4);insert into lck values (3,6);insert into lck values (4,8);insert into lck values (5,3);insert into lck values (6,5);insert into lck values