易截截图软件、单文件、免安装、纯绿色、仅160KB

Oracle 最常用功能函数经典汇总

  * SQL Group Function
*
s (num can be a column or ex
pression)          
  (null values are ign
*
ored, default between distin
ct and all is all)      
  ********************
***************
****************************
****************
  AVG([distinct or all] num)   
-- average value
  COUNT(distinct or all] num)  
-- number of values
  MAX([distinct or all
] num)   -- maximum value
  MAX([distinct or all] num)   
-- minimum value
  STDDEV([distinct or
all] num)  -- standard devi
ation
  SUM([distinct or all
] num)   -- sum of values
  VARIANCE([distinct o
r all] num) -- variance of v
alues
   
  ********************************
***********************
************************
  * Miscellaneaous Functions :  
*
                       
  ********************
***************
****************************
****************
  DECODE(expr, srch1,
return1 [,srch2, return2...]
, default]
      -- if no search matches t
he expression then the default is returned,
      -- otherwise,
the first search that match
es will cause
      -- the corres
ponding return value to be r
eturned
  DUMP(column_name [,fmt [,start_p
os [, length]]])
     -- returns an
column
internal oracle format, used
for getting info about a
     -- format options : 8 = oc
tal, 10 = decimel, 16 = hex, 17 = characters
     -- return type
codes : 1 = varchar2, 2 = n
umber, 8 = long, 12 = date,
     --  23 = raw,
24 = long raw, 69 = rowid,
96 = char, 106 = mlslabel
  GREATEST(expr [,expr2 [, expr3...]]
     -- returns the largest val
ue of all expressions
  LEAST(expr [,expr2 [, expr3...]]
     -- returns the
smallest value of all expre
ssions
  NVL(expr1 ,expr2
     -- if expr1 is not null, i
t is returned, otherwise expr2 is returned
  SQLCODE
     


相关文档:

Oracle自代的线程池

第一个类:
/**
 *
 * 存放oracle数据库的链接信息。
 *
 * @author ZhongHuiQiang
 *
 */
public interface IOracleDAOInfor {
 String DB_SERVER_HOSET = "localhost";
 String DB_SERVER_NAME = "ppoo";
 String DB_USER_NAME = "system";
 String DB ......

在linux上silent安装oracle简直是一场噩梦

 Parsing command line arguments:
    Parameter "silent" = true
java.lang.ArrayIndexOutOfBoundsException: 2
        at oracle.net.ca.CmdlineArgs.parseArgs(Unknown Source)
        at oracle.net.ca.I ......

SQL Server和Oracle常用函数对比


数学函数
1.绝对值
S:select abs(-1) value
O:select abs(-1) value from dual
2.取整(大)
S:select ceiling(-1.001) value
O:select ceil(-1.001) value from dual
3.取整(小)
S:select floor(-1.001) value
O:select floor(-1.001) value from dual
4.取整(截取)
S:select cast(-1.002 as in ......

ORACLE插入日期数据

 oracle数据库插入日期型数据
往Oracle数据库中插入日期型数据(to_date的用法)
今天碰到了需要往Oracle数据库中插入日期型数据,要使用TO_DATE函数,在网上发现一篇写的不错的文章,摘来一起分享。
INSERT  INTO  FLOOR  VALUES  ( to_date ( '2007-12-20 18:31:34' , 'YYYY-MM-DD HH24:M ......

oracle 中的IN,LIke

 IN条件
用IN条件在指定的一组值中进行测试。IN条件也就是 成员条件。
在幻灯片的例子中显示所有经理号为100、101或201的雇员的employee numbers, last names, salaries和经理的employee numbers。
在IN条件中可以使用任何数据类型。下面的例子从EMPLOYEES表返回雇员信息行,这些雇员的名字包括在WHERE子句的名字列 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号