共 66 篇文章 |
|
oracle表分区详解此文从以下几个方面来整理关于分区表的概念及操作: 1.表空间及分区表的概念 2.表分区的具体作用 3.表分区的优缺点 4.表分区的几种类型及操作方法 5.对表分区的维护性操作.(1.) 表空间及分区表的概念表空间: 是一个或多个数据文件的集合,所有的数据对象都存放在指定的表空间中,但主要... 阅43 转2 评0 公众公开 14-12-22 15:52 |
with row_number_test as( select 22 a,''twenty two'' b,''*'' c from dual union all select 1,''one'',''+'' from dual union all select 13,''thirteen'',''*'' from dual union all select 5,'... 阅568 转0 评0 公众公开 14-07-04 15:31 |
④Oracle中的日期时间格式修改:a.SQL> alter session set nls_date_format = ''yyyy-mm-dd hh24:mi:ss'';b.册表\hkey_local_machine\software\oracle\home0主键中增加一个字串(8i版本),字串名为nls_date_format,字串的值为你希望定义的时间格式前者只对当前会话有效,也即是一旦你关闭了SQL*PLUS窗口或重新打开一个SQL*P... 阅110 转0 评0 公众公开 13-12-04 17:18 |
oracle时间函数。一、Oracle的日期函数:【1】为当前时间加上30分钟: SQL> select to_char(sysdate, ''yyyy-mm-dd hh:mi:ss'') now_date, 2 to_char(sysdate+(30/24/60), ''yyyy-mm-dd hh:mi:ss'') new_date 3 from dual;TWO_YEARS_----------30-6月 -10【2】求两个日期相差几年: SQL>... 阅1715 转3 评0 公众公开 13-09-23 14:01 |
用java调用oracle存储过程总结。ResultSet rs = null;conn = DriverManager.getConnection(strUrl, "hyq ", "hyq ");=null){注意,这里的proc.getString(2)中的数值2并非任意的,而是和存储过程中的out列对应的,如果out是在第一个位置,那就是proc.getString(1),如果是第三个位置,就是proc.getString(3),当然也可以同... 阅25 转0 评0 公众公开 13-09-08 14:26 |
9.select trunc(123.458) from dual --12310.select trunc(123.458,0) from dual --12311.select trunc(123.458,1) from dual --123.412.select trunc(123.458,-1) from dual --12013.select trunc(123.458,-4) from dual --014.select trunc(123.458,4) from dual --123.45815.select trunc(123) from dual --12316.select trunc(123,1) fro... 阅34 转0 评0 公众公开 13-09-04 13:59 |
UPPER返回字符串,并将所有的字符大写SQL> select upper(''AaBbCcDd'') upper from dual;SOUNDEX返回一个与给定的字符串读音相同的字符串SQL> create table table1(xm varchar(8));SQL> insert into table1 values(''weather'');SQL> insert into table1 values(''wether'');SQL&g... 阅13 转0 评0 公众公开 13-09-04 10:28 |
阅785 转6 评0 公众公开 13-09-02 09:59 |
用java调用oracle存储过程总结。ResultSet rs = null;conn = DriverManager.getConnection(strUrl, "hyq ", "hyq ");=null){注意,这里的proc.getString(2)中的数值2并非任意的,而是和存储过程中的out列对应的,如果out是在第一个位置,那就是proc.getString(1),如果是第三个位置,就是proc.getString(3),当然也可以同... 阅19 转0 评0 公众公开 13-08-30 16:08 |