oracle数据库零散知识01
2015-10-26 17:07
369 查看
1,rownum 是一个虚列,使用时必须包括1才能使用,rownum = 1,rownum < 10; rownum = 2是不可以的;
2,if case loop 要加end结束,end if;
3,外键,foreign key(s) references table_name(pk)
4,创建一个表,复制内容 create table t_1 as select * from t_2;
5,存在一个表,复制内容 insert into t_1 select * from t_2;
6,清空一个表 truncate table t_1;
7,insert into .. values...
8,update t_1 set col = value where ...
9,delete from ...where ...
10,非空约束 alter里是 modify column not null,其他都是add 或者是 drop
11,sqlplus里格式化行大小 col column format a15;
12,round()与trunc()中正数控制小数部分,负数控制整数部分
13,substr(),其中正数从前截取,负数从后截取
14,to_char()转换成字符串 to_date()将字符串转换为日期
2,if case loop 要加end结束,end if;
3,外键,foreign key(s) references table_name(pk)
4,创建一个表,复制内容 create table t_1 as select * from t_2;
5,存在一个表,复制内容 insert into t_1 select * from t_2;
6,清空一个表 truncate table t_1;
7,insert into .. values...
8,update t_1 set col = value where ...
9,delete from ...where ...
10,非空约束 alter里是 modify column not null,其他都是add 或者是 drop
11,sqlplus里格式化行大小 col column format a15;
12,round()与trunc()中正数控制小数部分,负数控制整数部分
13,substr(),其中正数从前截取,负数从后截取
14,to_char()转换成字符串 to_date()将字符串转换为日期
相关文章推荐
- oracle12c中新能优化新特性之热度图和自动数据优化
- ORACLE 日期加减操作
- node-oracle windows下编译安装
- oracle查看数据文件, 控制文件, 及日志文件命令
- oracle日志目录查看
- [oracle]Win7X64系统下oracle服务详解
- linux下oracle创建用户步骤
- exists
- TimesTen更改CacheGroup管理用户ORACLE结束和TT结束password【TimesTen操作和维修基地】
- oracle函数之多行函数
- Oracle修改字段类型
- oracle 12.1.0.2 对 bigfile进行resize 遇到enq:TT-contention
- ebs 请求中选值集信息时报APP-FND-01564: ORACLE error 24345 in fdlget
- Oracle中数据类型number(m,n)
- Oracle怎么更改用户名
- Oracle周别疑问
- oracle 透明网关 to sql server
- Oracle EBS 11i BOM模块常用表结构
- 各种主流数据库的比较(所以说我觉得Oracle这个keng?入的不错?)
- Oracle——数据类型