對於SPOOL資料的SQL,最好要自己定義格式,以方便程式直接匯入,SQL語句如: select taskindex||'|'||commonindex||'|'||tasktype||'|'||to_number(to_char(sysdate,'YYYYMMDD')) from ssrv_sendsms_task; spool常用的設定 set colsep' '; //域輸出分隔字元 set echo
今天在幫開發人員Demon安裝oracleXE時,有這麼一段提示: Destination Folder: D:\oraclexe\Port for 'Oracle Database Listener': 1521Port for 'Oracle Services for Microsoft Transaction Server': 2030Port for HTTP Listener: 8080
用了一套老系統的IVR要和一套別家公司作對接,人家只能提供Http的介面方式,而我只能使用SQL的介面,沒辦法只好用SQL來對接Http了。用例如下,請各位大鳥多提供寶貴意見。 -- Created on 2012-1-2 by Yamzef in Wuxideclare i integer; -- Local variables here urlp varchar2(2000); req utl_http.req; resp utl_http.resp; value
偶寫一個銷售查詢的功能模組,但在測試的時候按 條碼/編碼/庫房 條件排序的時候都沒有錯誤,只要按日期查的時候就會有“Ora-01791 不是Selected運算式”的錯誤資訊,於是查看我的SQL語句,語句如下:select distinct GoodsId,Barcode,DepotId,GoodsName from sa_sale where depotid='11' order by selldate這句話執行的時候就有錯誤 ,但把排序換成 order by Goodsid
在用hibernate的時候,無意間用了_teacher這個作為表名。然後就遇到了ora-00911這個錯誤。後來查了一下oracle錯誤文檔,如下:ORA-00911 invalid character CauseSpecial characters are valid only in certain places. If special characters other than $, _, and # are used in a name and the name is not