nullif(col1,666) 用法
NULLIF compares expr1 and expr2. If they are equal, then the function returnsnull. If they are not equal, then the function returns expr1. You cannot specify theliteral NULL for expr1if (col1=666) ...
PL/SQL正则表达式(Oracle 10g)
正则表达式的基本例子 在使用这个新功能之前,您需要了解一些元字符的含义。句号 (.) 匹配一个正规表达式中的任意字符(除了换行符)。例如,正规表达式 a.b匹配的字符串中首先包含字母 a,接着是其它任意单个...
ORACLE约束
什么是约束?约束是表级强制执行的规则.当表中数据有相互依赖性时,可保护数据不被删除.Oracle 有如下类型的约束:NOT NULLUNIQUE KeyPRIMARY KEYFOREIGN KEYCHECKOracle使用SYS_Cn格式命名约束.创建约束:在建表的同时...
Oracle Update Statements
Oracle Update Statements Version 11.1 Basic Update Statements Update all records...
count(*),count(col),count(1) 区别
SQL> create table tt( A &nbs...
日期小写转大写的函数
日期小写转大写的函数SQL> create or replace function date_change(in_date in date) 2 return varchar2 is 3 v_date ...