SELECT REGEXP_SUBSTR ('first field, second field , third field', '[^,]+', 1,rownum) FROM DUAL CONNECT BY ROWNUM <= LENGTH ('first field, secon...
分类:
数据库 时间:
2014-10-23 12:09:45
阅读次数:
352
helloworld.c 代码#include #include MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){ printk(KERN_ALERT "Hello world\n"); return ...
分类:
其他好文 时间:
2014-10-22 12:33:04
阅读次数:
172
SQL中的单记录函数1.ASCII返回与指定的字符对应的十进制数(注:是字符而非字符串);SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual;A A ZERO SPACE--------- ...
分类:
数据库 时间:
2014-10-22 12:24:45
阅读次数:
273
dual是一个虚拟表,用来构成select的语法规则,oracle保证dual里面永远只有一条记录。我们可以用它来做很多事情。dual是一个虚拟表,用来构成select的语法规则,oracle保证dual里面永远只有一条记录。我们可以用它来做很多事情,如下: 1、查看当前用户,可以在 SQL Pl....
分类:
数据库 时间:
2014-10-21 15:19:04
阅读次数:
349
连接字符使用 ||比如select 'a'||'b' from dual 输出 abdual是oracl的系统表
分类:
数据库 时间:
2014-10-17 18:16:52
阅读次数:
221
突然发现,把基础给忘了,AND的优先级大于OR,试验如下:--Yselect 'Y' from dual where 1=2 and 1=2 or 1=1;--Yselect 'Y' from dual where (1=2 and 1=2) or 1=1;--No valueselect 'Y' ...
分类:
数据库 时间:
2014-10-15 19:34:11
阅读次数:
478
先看下代码的相关注释:/*! * jQuery UI Widget 1.8.1 * * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt)...
分类:
Web程序 时间:
2014-10-14 16:35:08
阅读次数:
148
查看字符集
select userenv('language') from dual;
修改字符集(逐条执行即可)
sqlplus "/as sysdba";
shutdown immediate;
startup mount;
alter system enable restricted session;
alter system set job_queue_pr...
分类:
数据库 时间:
2014-10-12 17:41:08
阅读次数:
227
9i下--多行with temp as(select '6001600301,6001600302,6001600303,6001600304' text from dualunionselect '7001600301,7001600302,7001600303' text from dual)s...
分类:
其他好文 时间:
2014-10-11 19:55:26
阅读次数:
246
with temp as( select 'A01' nation ,1 as S1,2 as S2, 3 as S3 from dual union all select 'A02' nation ,null as S1,5 as S2, 6 as S3 from dual)select ...
分类:
数据库 时间:
2014-10-11 01:12:44
阅读次数:
230