1. 程式人生 > >SY專案開發隨記

SY專案開發隨記

編譯器字符集:-Dfile.encoding=UTF-8

編譯器(Eclipse)記憶體: -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m

--查詢空格 select t.*, t.rowid from HR_EDUCATION t  where regexp_like(t.start_date, '( )+');

merge into 目標表 a using 源表 b on(a.條件欄位1=b.條件欄位1 and a.條件欄位2=b.條件欄位2 ……)   when matched then update set a.更新欄位=b.欄位 when  not macthed then insert into a(欄位1,欄位2……)values(值1,值2……)  

資料庫備份批處理:

set fileName=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% set fileName=HR%fileName: =0%.dmp echo %fileName% exp admin/[email protected] file=E:\backup\database\%fileName% log=E:\backup\database\exp.log owner=(admin) exit

Oracle資料庫日誌查詢:

select t.SQL_TEXT, t.FIRST_LOAD_TIME from v$sqlarea t where t.FIRST_LOAD_TIME like '2018-11-08%' order by t.FIRST_LOAD_TIME desc