oracle数据库零散知识01
2024-08-31 19:50:18
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()将字符串转换为日期
最新文章
- 检测到有潜在危险的 Request.Form 值
- Performance Monitor1:开始性能监控
- 在一个老外微信PM的眼中,中国移动App UI那些事儿
- (转)myeclipse插件—SVN分支与合并详解【图】
- eclipse安装JAVA反编译插件
- Android之线程回掉更新ui
- 【jqGrid for ASP.NET MVC Documentation】.学习笔记.7.搜索过滤数据
- elk工作原理
- centos7 部署openstf
- shell 组合新的变量名
- springcloud情操陶冶-bootstrapContext(三)
- spring源码解析1--spring整体架构
- springboot+mybatis环境的坑和sql语句简化技巧
- iframe跨域解决方案
- 「AtCoder Grand018A」Getting Difference(GCD)
- 【ARTS】01_20_左耳听风-20190325~20190331
- Spark记录-官网学习配置篇(二)
- jQuery扩展插件以及正则相关函数练习
- git gitignore 如何添加,为何添加了无效
- OOP KLASSOOP, instanceklass
热门文章
- Emgucv 图像操作笔记
- POJ 3061 Subsequence 二分或者尺取法
- 定制表格头, 学习Core Graphic 的第二部分, 阴影与玻璃效果.
- OC学习篇之---第一个程序HelloWorld
- BUFSIZ
- 【Codeforces Round #435 (Div. 2) C】Mahmoud and Ehab and the xor
- ORACLE中的Net Configuration Assistant 点击后无反应, sqlplus登录数据库提示Oracle11g ORA-12560: TNS: 协议适配器错误
- 可视化格式模型(visual formatting model)
- svn 清理失败 (clean up 失败) 的解决方法
- ping localhost 没反应解决方式