`
ktnd
  • 浏览: 17373 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
"When you need a value from the first or last row of a sorted group, but the needed  value is not the sort key, the FIRST and LAST functions eliminate the need for  self-joins or views and enable better performance."   SELECT department_id, MIN(salary) KEEP (DENSE_RANK FIRST ...
COLUMN DATA TYPE TYPE=’T’ TYPE=’C’
http://www.oracle.com/technology/obe/obe10gdb/bidw/sqlmodel/sqlmodel.htm   rule based inter-row calculation.   use case ...
ftp -ni host << END_FTP quote user username quote pass password mget * bye END_FTP   ftp -ni host << END_SCRIPT user username password mget * bye END_SCRIPT     http://www.inlumineconsulting.com:8080/website/scripting.ftp.html
remarkReporting  Boolean-------------  TRUE if getTables and getColumns should report TABLE_REMARKS. This is equivalent to using setRemarksReporting. The default value is FALSE.  The value TRUE causes OracleDatabaseMetaData to include remarks in the metadata. This can result in a substantial reductio ...
Generate a table with number sequence in sql=========   1 Pre-defined collection types in Oracle--------- select to_number(column_value) as num from table(sys.dbms_debug_vc2coll(1,2,3,4,5,6,7,8,9)); select to_number(column_value) as num from table(sys.KU$_VCNT(1,2,3,4,5,6,7,8,9)); select colu ...
  Passing Afternoon        -- Iron & Wine     There are times that walk from you like some passing afternoon Summer warmed the open window of her honeymoon And she chose a yard to burn but the ground remembers her Wooden spoons, her children stir her Bougainvillea blooms There are things tha ...
http://www.oracle.com/technology/oramag/code/tips2004/050304.html 1. create a function to concatenate strings. CREATE OR REPLACE FUNCTION rowtocol( p_slct IN VARCHAR2, p_dlmtr IN VARCHAR2 DEFAULT ',' ) RETURN VARCHAR2 AUTHID CURRENT_USER AS TYPE c_refcur IS REF CURSOR; lc_s ...
Author Book Author Books --------+-------- --------+-------- poly | A poly | A,B,C poly | B amy | D,E poly | C ====> amy | D amy | E   HOW? select author, to_ ...
It's really a pleasure to code in groovy. My first try: import groovy.sql.Sql sql = Sql.newInstance("jdbc:oracle:thin:@ip:port:db","usr","pwd","oracle.jdbc.driver.OracleDriver") def base = "/usr/" def names = [] def today = new java.text.SimpleDat ...
Create A Simple PL/SQL Source Control Repository in Oracle Using Trigger 1 Create a table as repository of pl/sql source code create table CVS ( P_VER NUMBER, P_TEXT LONG, P_NAME VARCHAR2(100), P_OWNER VARCHAR2(30), P_TYPE VARCHAR2(30), P_DATE DATE, P_USER VARCHAR2(30) )  2 Creat ...
DefragAll.bat java 代码 defrag c: -v    defrag d: -v    defrag e: -v   
java 代码 import java.io.IOException;    import java.net.MalformedURLException;       import javax.media.ControllerEvent;    import javax.media.ControllerListener;    import javax.media.EndOfMediaEvent;    import javax.media.Manager;    import javax.media.MediaLocato ...
  Criminal Minds 第二季第一集片尾曲 http://pic13.pic.wretch.cc/photos/4/h/hyuk/11/1150252579.mp3 Five For Fighting - The Riddle Words & Song by John Ondrasik There was a man back in '95在一九九五年,有一個男人 Whose heart ran out of summers在夏天揮別了這個世界 But before he died, I asked him不過在他過世前,我問他 Wait, what's the sense ...
Global site tag (gtag.js) - Google Analytics