oracle 中不帶時分秒的字符串 to_date 轉換時間後與帶時分秒的date型字段做帶等值的比較 (>=,<=,=)時,由於字符串不帶時分秒,所以轉換後時分秒默認為00:00:00,oracle中比較date是以壹個時間點來比較的,精確到秒甚至毫秒微秒納秒,所以date字段的時分秒不為00:00:00的就與不帶時分秒字符串轉換後的date匹配不上。示例: 表中huhai_seq_value所有數據 MYDATE ———– 2009-03-02 2009-03-02 2009-03-02 2009-03-03 2009-03-03 2009-03-03 –sql1: select hsv.mydate from huhai_seq_value hsv where hsv.mydate = to_date(‘2009-03-03’,’yyyy-mm-dd ‘); sql1查詢結果: MYDATE ———– 2009-03-03 2009-03-03 –sql2: select hsv.mydate from huhai_seq_value hsv where to_char(hsv.mydate,’yyyy-mm-dd’) = ‘2009-03-03’; sql查詢結果: MYDATE ———– 2009-03-03 2009-03-03 2009-03-03 結論:所以在做不帶時分秒的日期比較時最好用to_char函數轉換後與字符串比較。 用between比較兩個時間 例 select * from tbl_name where issue_time between to_date(‘2007-04-12 23:59:59′,’YYYY-MM-DD HH24:MI:SS’) and sysdate;
分類: Oracle
【友情提醒】更新KillTest題庫SUN認證考試題庫
KillTest 題庫網接到prometric考試中心的通知,自oracle公司合并以來SUN認證名稱一直沒有改變。但是從11月份起,凡在KillTest題庫網購買任意一件SUN認證科目,需要提供官方考試科,如SCJP 310-065考試,現在KillTest考題網的科目是CX-310-065,考試名稱:Java Standard Edition 6 Programmer Certified Professional Exam 。KillTest考題網更新了SUN認證考試題庫,并將考試名稱和考試科目都進行了改變,考試名稱改為官方網站上規定的考試名稱,考試科目也更新為官方考試科目。10月30日更新的oracle java程式考試題庫是最新的,保證考生一次性通過Java程式考試。如下是30日更新的Oracle java考試題庫信息:
考試編號 考題數目 考試名稱
CX-310-019 242 Java Standard Edition 5 and 6, Certified Associate Exam
CX-310-052 320 Java Enterprise Edition 5 Enterprise Architect Certified Master Exam (Step 1 of 3)
CX-310-053 144 Java Enterprise Edition 5 Enterprise Architect Certified Master Upgrade Exam
CX-310-055 240 Java Standard Edition 5 Programmer Certified Professional Exam
CX-310-056 138 Java Standard Edition 5 Programmer Certified Professional Upgrade Exam
CX-310-065 267 Java Standard Edition 6 Programmer Certified Professional Exam
CX-310-066 93 Java Standard Edition 6 Programmer Certified Professional Upgrade Exam
CX-310-083 276 Java Enterprise Edition 5 Web Component Developer Certified Professional Exam
CX-310-084 119 Java Enterprise Edition 5 Web Component Developer Certified Professional Upgrade Exam
CX-310-091 304 Java Enterprise Edition 5 Business Component Developer Certified Professional Exam
CX-310-092 150 Java Enterprise Edition 5 Business Component Developer Certified Professional Upgrade Exam
CX-310-110 340 Java Mobile Edition 1 Mobile Application Developer Certified Professional Exam
CX-310-230 183 Java Enterprise Edition 5 Web Services Developer Certified Professional Exam
CX-310-231 91 Java Enterprise Edition 5 Web Services Developer Certified Professional Upgrade Exam
CX-310-600 100 OpenOffice.org Writer Certified Expert Exam
CX-310-610 139 OpenOffice.org Calc Certified Expert Exam
CX-310-620 65 OpenOffice.org Impress Certified Expert Exam
CX-310-105 157 Oracle Solaris Certified Associate Exam
CX-310-200 224 Oracle Solaris 10 System Administrator Certified Professional Exam, Part I
CX-310-202 379 Oracle Solaris 10 System Administrator Certified Professional Exam, Part II
CX-310-302 317 Oracle Solaris 10 Network Administrator Certified Expert Exam
CX-310-303 295 Oracle Solaris 10 Security Administrator Certified Expert Exam
CX-310-345 248 Oracle Solaris Cluster 3.2 System Administrator Certified Professional Exam
CX-310-810 139 MySQL 5.0 Database Administrator Certified Professional Exam, Part I
CX-310-811 138 MySQL 5.0 Database Administrator Certified Professional Exam, Part II
凡需要KillTest考題網的Oracle JAVA程式題庫可以享受一定的優惠折扣,確保每一位考生都能夠通過考試,解除了考生JAVA考試失敗的煩憂!折扣號的索取可以來函到sales@killtest.net, 將具體要求說明!
Oracle認證考試資訊
Oracle數據庫認證目前支持的3個版本分別為Oracle 9i、Oracle 10g和Oracle 11g,其中Oracle 11g為Oracle數據庫的最新版本。Oracle 認證級別是IT行業衡量IT專家和經理人的專業程度及經驗的基準。
Oracle提供三個等級的技術認證,分別是OCA、OCP、OCM。
OCA 為Oracle Certified Associate(Oracle認證專員)
OCP 為Oracle Certified Professional(Oracle認證專家)
OCM為Oracle Certified Master(Oracle認證大師)。
Oracle是全球領先的數據庫供應商。在技術革新方面,Oracle數據庫從可伸縮性、安全性和高可用性到XML支持都堪稱完美,是目前為止市場上可見到的技術最先進的數據庫產品之壹。
Oracle職業認證是由Oracle公司頒布並實施的壹項權威的專業技術標準,它是專為認證那些能夠滿足對Oracle核心產品的服務與支持,並具有嫻熟操作能力與廣泛理論知識的專業人士。壹經認證,在行業內的專業資格將被確認,從而使個人或企業更具競爭實力。作為Oracle認證專家,將具有對業界最具挑戰性的機遇,更深的洞察力,並獲取更多的收獲。
在全球,近半數的企業與組織都在使用Oracle的技術。數據是企業信息化的核心,不可或缺。