- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
oracle数据库函数(国外英文资料)
oracle数据库函数(国外英文资料)
The function in oracle database:
The cartesian set: the record of two tables multiplied
Check the tree for several layers
The select count (distinct level) from emp start with empno = 7839 connect by prior empno = MGR
Select level, lpad (, 2 * level-1) | | ename from emp start with empno = 7839 connect by prior empno = MGR
Use the set operator
The set operator can combine two rows or rows returned by multiple queries.
1, union all: returns all rows retrieved from each query, including duplicate rows
Union: returns all rows retrieved from each query, not including duplicate rows
Intersect: returns the common rows retrieved by two queries
Minus: returns the row that retrieves the second query from the row that was retrieved from the first query minus the remaining record
The difference between UNION and UNION ALL:
1. In the query will encounter UNION ALL, its usage, and the UNION, the UNION only contains distinct features, it can remove the two form duplicate records, and UNION ALL cant, so, from the efficiency of UNION ALL will be a little higher.
The union all is arranged in order, and the union resorts the duplicate data in the two tables
MINUS:
The instructions are applied to two SQL statements. It first finds the results of the first SQL statement, and then see if the results are in the results of the second SQL statement. If so, the data is removed and wont appear in the final results. If the result of the second SQL statement does not exist in the result of the first SQL statement, the data is discarded.
Commonly used functions:
(1) NVL (string, t_number)
When string is NULL (empty) value, take the t_number value
Converting empty values to a value that has real meaning, which affects the value of a single step
Total annual income of all employees in the emp table:
Select ename, sal * 12 * (1 + NVL (comm / 100001)) from emp;
Nvl2 (c1, c2, c3) - c1 is empty, and c3, if c1, c3 is both empty and c2
(2) distinct: prevent data repeatability
Select
您可能关注的文档
- c语言键盘调用(国外英文资料).doc
- C语言题(国外英文资料).doc
- D1压力管道考试模拟题4(国外英文资料).doc
- D1压力管道考试模拟题5(国外英文资料).doc
- DAC0832(国外英文资料).doc
- DataGridView剪切板的操作(国外英文资料).doc
- DB2 备份 以及 各个参数(国外英文资料).doc
- DCDC电源模块(国外英文资料).doc
- DB2模拟题(国外英文资料).doc
- cs1.5控制台指令(国外英文资料).doc
- 2025年石家庄市直机关遴选公务员笔试真题汇编附答案解析.docx
- 2025年榆林市直属机关遴选公务员笔试真题汇编带答案解析.docx
- 2024年海西州遴选公务员考试真题汇编及答案解析(夺冠).docx
- 2025年韶关市直属机关遴选公务员笔试真题汇编带答案解析.docx
- 2024年彭水苗族土家族自治县直机关遴选公务员笔试真题汇编及答案解析(夺冠).docx
- 2025年大理州直属机关遴选公务员笔试真题汇编附答案解析.docx
- 2024年张掖市选调公务员考试真题汇编附答案解析.docx
- 2024年荆州市直机关遴选公务员笔试真题汇编及答案解析(夺冠).docx
- 2024年洛阳市直遴选考试真题汇编附答案解析(夺冠).docx
- 2024年贵阳市直机关遴选公务员笔试真题汇编含答案解析(夺冠).docx
最近下载
- 《保教政策法规与职业道德》中职幼儿保育专业全套教学课件.pptx
- 教学法学习成果1—“市场调查问卷设计”教案.doc VIP
- 2025年新苏教版四年级上册科学全册知识点含实验总结.pdf
- 心血管慢病管理策略.pptx
- 美剧剧本怪诞小镇台词本中英文对照精排版第一季第一集.pdf VIP
- 《幼儿良好习惯养成实践研究》-课题研究结题报告.文档.doc VIP
- 重点小学劳技学科学生评语.docx VIP
- 听力解题技巧+课件-2026届高三英语上学期一轮复习专项.pptx
- 第2部分 专题精练 《浮力、压强和密度》综合计算专项突破—全国初中物理竞赛试题精编(八年级下)(解析版).docx VIP
- 包头锦河湾工程CFG桩基础施工合同.docx VIP
原创力文档


文档评论(0)