oracle
鱼丸小鑫
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Merge into用法总结
merge into 目标表 a using 源表 b on(a.条件字段1=b.条件字段1 and a.条件字段2=b.条件字段2 ……) when matched then update set a.更新字段=b.字段 when not macthed then insert into a(字段1,字段2……)values(值1,值2……)--------------...转载 2019-01-23 10:31:25 · 913 阅读 · 0 评论 -
Oracle 行转列(pivot、wm_concat、decode)使用总结(转载)
在日常使用中,经常遇到这样的情况,需要将数据库中行转化成列显示,如转化为这个时候,我们就需要使用pivot函数百度后,参考网址http://www.2cto.com/database/201501/367164.html ,完成了以下操作with temp as(select '四川省' nation ,'成都市' city,'第一' ranking from dual un...转载 2019-01-23 14:32:00 · 690 阅读 · 1 评论 -
数据库索引
https://www.cnblogs.com/liangyihui/p/5886619.html数据库索引:索引有单列索引复合索引之说如何某表的某个字段有主键约束和唯一性约束,则Oracle 则会自动在相应的约束列上建议唯一索引。数据库索引主要进行提高访问速度。建设原则: 1、索引应该经常建在Where 子句经常用到的列上。如果某个大表经常使用某个字段进行查询,并且检索行...转载 2019-01-23 16:45:05 · 183 阅读 · 0 评论
分享