history命令
在Linux输入history命令可以查看你输入的历史命令,例如:
[root@demo ~]# history 1 gnome-session 2 cd /etc/profile.d/ 3 ls 4 ls -l 5 more lang. 6 more lang.sh 7 ls -l 8 clear 9 man history 10 ls 11 cd /home/test/ ……………………………..
默[......]
Oracle FIRST_VALUE和LAST_VALUE函数
first_value和last_value都属于分析函数。根据Oracle官方文档的描述first_value返回一个排序数据集合的第一行,last_value返回一个排序数据集合的最后一行。根据描述它们好像是一对相反的函数,一个返回第一行,一个返回最后一行,事实真是这样吗?
拿scot.emp表的数据举例说明:
1* select deptno,sal from emp where deptno=10 21:45:18 SCOTT@ orcl>/ DEPTNO SAL ---------- --------[......]
序列的currval方法
序列可以通过currval方法和nextval来获取序列的当前值和下一个值。
首先我创建一个序列:
create sequence SEQ_TEST minvalue 1 maxvalue 10000 start with 1 increment by 1 nocache cycle order;
我打开一个会话执行以下SQL语句
00:59:58 SCOTT@ orcl>select seq_test.currval from dual; select seq_test.currval fr[......]
SQLLDR数据类型
今天使用Oracle提供的sqlldr将CSV文件导入到数据库中,因为表的列信息有字符类型也有数值类型,在写控制文件时也对于的加上了数据类型,控制文件如下:
load data infile 'aa.csv' into table student fields terminated by ',' ( id number, name varchar2(10) )
表结构:
create table STUDENT ( ID NUMBER, NAME VARCHAR2(10) )
结果运行时直接报错了,报错信息如下:
c:\>sqlldr sc[......]
2010.04.08挑战题目
题干:下列哪些数据类型在结果缓存函数中不能作为RETURN语句的返回类型
选项1:
Large objects (BLOB, CLOB, BFILE)
选项2:
Object types
选项3:
Associative arrays
选项4:
Nested tables and varrays
选项5:
Cursor variables
选项6:
Records (user-defined and %ROWTYPE)
选项7:
Scalars (numbers, dates, strings, Booleans)
题目转载自:http://www.plsqlchallenge.com/
答案:选项1,2,5UTF8_EXCERPT_H[......]