標籤:資料庫字元集的不同使日期型的顯示有問題解決alter session set NLS_DATE_LANGUAGE=‘AMERICAN‘;解鎖scott賬戶alter user scott identified by tiger account unlock;DISTINCT去掉重複的行基本查詢語句的格式SELECT *|{[DISTINCT] 列表,...}FROM 表名; 其中 列表: 列名|運算式 [別名]SELECT * FROM
標籤:在java中把string類型的時間換成date類型然後做運算: Date time1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(intime);time2.getTime()轉換成這個時間的long類型,實現對時間前後的判斷; 如果在資料庫存入的是data類型時間;調用的時候可以通過 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
標籤:本文轉自:http://www.cnblogs.com/ycdx2001/p/3502495.htmlwith temp as(select ‘China‘ nation ,‘Guangzhou‘ city from dual union allselect ‘China‘ nation ,‘Shanghai‘ city from dual union allselect ‘China‘ nation ,‘Beijing‘ city from dual union allselect
標籤:內容來自 oracle 11g 實用教程 鄭阿奇等編在 oracle 11g中有merge語句,用於根據與原表串連的結果,對目標表執行插入,更新,或者刪除操作。例如,根據在一個表中找到的差異在另一個表中插入,更新或者刪除行,這種方法可以對兩個表進行資訊同步。文法格式如下merge into <目標表名>using <原表名>on <條件運算式>when matched then {update set ...|delete}when not
標籤:1、查看使用者的profile是那個,一般是default:select username, profile from dba_users;2、查看指定概要檔案(如default)的密碼有效期間設定:select * from dba_profiles where profile = ‘DEFAULT‘ and resource_name =