转义字符&特殊字符处理
SQL> select * from test;TEST--------------------sdd_kkd'ddfsfsadffa%asfs123451%23451%543212%54321%%54321A&B已选择9行。 其中包含特殊的字符分别为%,_,&,有可能包含这些字...
日期函数
select to_char(to_date('2010-04-16','yyyy-mm-dd'),'dy') from dual;结果:TO_---fri引申:select to_char(sysdate,'CC WW W D DDD YYYY/MM/DD') FROM DUAL其中CC為世紀WW為一年中的周W為一個月中的周D為...
ORACLE三种集合数据类型
有分三种:索引表、嵌套表、数组;1、索引表create or replace type myit is table of number index by pls_integer索引表可以直接赋值,不用初始化。2、嵌套表create or replace type nt is table of numbermynt nt...
常用SQL
oracle常用经典SQL查询 常用SQL查询: 1、查看表空间的名称及大小 selectt.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_sizefromdba_tablespaces t, dba_data_files dwheret.t...