摘要:1、NULLIF函数 函数语法:NULLIF(Expression1,Expression2) 函数功能:如果来个表达式相等,则返回NULL值,否则返回第一个表达式 功能很简单,但是要注意以下几种情况: 1)两个表达式的类型必须相等。 SQL> SELECT nullif(100, 'a') FRO
阅读全文
摘要:创建表 create table student( student_id number, name varchar2(240) ) tablespace school_data; 创建索引 create index student_n1 on studen(name); 查看索引具体内容 SELEC
阅读全文
摘要:1、创建一张表 create table student( student_id number ); 但是在pl/sql中查看却是以下的建表语句: -- Create table create table STUDENT ( student_id NUMBER ) tablespace SYSTEM
阅读全文
摘要:1、oracle数据块是存储的最小单元。 什么意思呢? select name from student where id = 201; 我们查询出的数据,加入只有2k的大小,但是也要把这个8k的数据块全部取出来(默认是8k)
阅读全文
摘要:1)查看请求挂在哪个状态下 SELECT fcpv.concurrent_program_name FROM fnd_request_groups frg, --请求组 fnd_request_group_units frgu, --请求单元 fnd_responsibility_vl frv, -
阅读全文
摘要:create table test1(id number); insert into test1 values(11);insert into test1 values(22);insert into test1 values(33);commit; create or replace synony
阅读全文
摘要:centos7 1、安装rlwrap软件包 yum install rlwrap -y 2、编辑环境变量 su - oracle vim ~/.bash_profile alias sqlplus='rlwrap sqlplus'alias rman='rlwrap rman'PATH=/usr/b
阅读全文
摘要:虚拟机安装了EBS12.2.11,在服务器内使用sqlplus等登录上,但是在主机使用plsql dev登录不上 解决办法: 修改这个ORACLE监听文件 sqlnet.ora NAMES.DIRECTORY_PATH=(TNSNAMES, ONAMES, HOSTNAME)SQLNET.EXPIR
阅读全文