- 1、本文档共25页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
SQL_PLSQL培训
SQL PL/SQL语言基础
参考资料
SQL Reference: 语法及函数参考
Error Message : 出错信息
SQL Plus Guide and Reference
PL/SQL User’s Guide and Reference
Application Developer’s Guide – Fundamentals: 开发ORACLE应用的一般性指导
Supplied PL/SQL Packages Reference:PL/SQL内置Package参考
SQL基础
历史
Dr. E. F. Codd于1970年在ACM(Association Of Computer Mechanism)月刊上发表了A Relational Model of Data for Large Shared Data Banks, 建立了关系模型。1979年, Relational Software, Inc. (现在的Oracle Corporation)发布了第一个SQL商业应用。
标准
SQL-92: Entry, Transitional, Intermediate, and Full
Core SQL-99
参见SQL Reference 附录B:Oracle and Standard SQL
Basic Elements of Oracle SQL
Literals (Text, Integer, Number, Interval)
Datatypes
Format Models
Nulls
Pseudocolumns [sju:dou];
Comments
Database Objects
Schema Object Names and Qualifiers
Referring to Schema Objects and Parts
Literals
The terms literal and constant value are synonymous and refer to a fixed data
value.
Text ’jack’’s sword’ length 4000
Integer
Number 38 digits of precision.
Interval specifies a period of time
Datatypes
Built-in Datatypes
User-defined type
Built-in Datatypes
VARCHAR2 (size) NVARCHAR2 (size)
NUMBER (p, s)
LONG
DATE
RAW (size) LONG RAW
ROWID UROWID [(size)]
CHAR (size) NCHAR (size)
CLOB NCLOB BLOB BFILE
More information about Oracle datatype, see SQL Reference or Server Application Developer’s Guide
ROWID: (extended fmt: OOOOOO-FFF-BBBBBB-RRR; restricted fmt: BBBBBBBB.RRRR.FFFF, use DBMS_ROWID.ROWID_TO_RESTRICTED to make the conversion)
Data Conversion
Implicit Data Conversion
Explicit Data Conversion
To get more information about explicit data conversion, see SQL Reference, from 35 ‘Data conversion’ to 53; or see the references of relevant oracle functions.
NULL
To test for nulls, use only the comparison operators IS NULL and IS NOT NULL. If you use any other operator with nulls and the result depends on the value of the null, the result is UNKNOWN.
Pseudocolumns
CURRVAL and NEXTVAL
LEVEL
ROWID
ROWNUM
Comment
Hint
The optimizer uses these hints as suggestions for cho
您可能关注的文档
- 第1章应用与开发环境.ppt
- 数据库期末考试模拟试题及其它.doc
- 第4章 关系数据库的结构化查询语言(查询2).ppt
- 第七章 多表查询.ppt
- 2009年淘宝数据库笔试题.docx
- 05_ORACLE系统函数和联接查询.ppt
- 04第四章 oracle中多表连接和子查询.ppt
- 动物生命活动调节周考试题.doc
- 第七章 SQL Server数据库应用开发技术.ppt
- 02SQL执行计划.ppt
- 中国行业标准 GM/T 0126-2023HTML密码应用置标语法.pdf
- 《JJF 2121-2024恒转速源校准规范》.pdf
- 餐饮服务中20条处理要点.docx
- 《GM/T 0011-2023可信计算 可信密码支撑平台功能与接口规范》.pdf
- 《JJF 2134-2024旋转流变仪校准规范》.pdf
- JJF 2121-2024恒转速源校准规范.pdf
- 计量规程规范 JJF 2121-2024恒转速源校准规范.pdf
- 《JJF 2118-2024压力式六氟化硫气体密度控制器校验仪校准规范》.pdf
- JJF 2134-2024旋转流变仪校准规范.pdf
- 计量规程规范 JJF 2134-2024旋转流变仪校准规范.pdf
文档评论(0)