版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Managing Schema ObjectsObjectivesAfter completing this lesson, you should be able to do the following:Create and modify tablesDefine constraintsView the attributes of a tableView the contents of a tableCreate indexes and viewsWhat Is a Schema?HR schemaHR userownsSchemasSchemas created as part of the
2、 database creation process:SYSSYSTEMSample schemasSchemas - Full Notes PageAccessing Schema ObjectsClick a link to access the schema objects.Naming Database ObjectsNames must be from 1 to 30 bytes long with these exceptions:Names of databases are limited to 8 bytesNames of database links can be as l
3、ong as 128 bytesNonquoted names cannot be Oracle reserved words.Nonquoted names must begin with an alphabetic character from your database character set.Naming Database ObjectsNonquoted names can contain only Alphanumeric characters from your database character setThe underscore (_)Dollar sign ($)Po
4、und sign (#)No two objects can have the same name within the same namespaceSchema Object NamespacesThe following have their own namespace:IndexesConstraintsClustersDatabase triggersPrivate database linksDimensionsThe following are in the same namespace:TablesViewsSequencesPrivate synonymsStand-alone
5、 proceduresStand-alone stored functionsPackagesMaterialized viewsUser-defined typesSpecifying Data Types in TablesCommon data types:CHAR(size): Fixed-length character data of length size bytesVARCHAR2(size): Variable-length character string having maximum length size bytesDATE: Valid date range from
6、 January 1, 4712 BC to December 31, 9999 ADNUMBER(p,s): Number having precision p and scale sOther Data TypesFLOATINTEGERNCHARNVARCHAR2LONGLONG RAWRAWROWIDUROWIDBLOBCLOBNCLOBBFILETIMESTAMPOther Data TypesFull Notes PageCreating and Modifying TablesSpecify the table name and schema.Specify the column
7、 names, data types, and lengths.Creating and Modifying TablesFull Notes PageUnderstanding Data IntegrityUnderstanding Data IntegrityFull Notes PageDefining ConstraintsViewing the Attributes of a TableViewing the Contents of a TableActions with TablesActions with Tables Full Notes PageCreating Indexe
8、sWhat Is a View?Tailored representation of data in a table or viewViews do not contain dataCreating ViewsWhat Is a Sequence?What Is a Sequence? Full Notes PageUsing a SequenceSummaryIn this lesson, you should have learned how to:Create and modify tablesDefine constraintsView the attributes of a tableView the contents of a tableCreate indexes and viewsPractice 8: Working with TablesThis practice covers the following:Creating tables and indexesModifying tablesDropping a tableCreating a viewPr
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 房地产住宅介绍课件
- 房地产项目简介课件
- 高中政治2026教资面试高频考题全真模拟试卷及答案
- 小学英语2026教资面试答辩题库及解析
- 提高护理满意度的创新举措
- 介绍护理专业
- 危重症患者VE的护理
- 房地产脚本课件
- 钒电池教学课件
- 粉尘作业安全培训课件
- 2026年广东省环保集团有限公司人员招聘考试模拟试题及答案
- 2026年全国高校辅导员素质能力大赛考试测试题(附答案)
- 2026-2027北京初中语文秋季期七年级上册期中模拟试卷(三)
- 2026年《检验检测机构资质认定评审准则》考试练习题及答案
- 专项债项目运营管理指南
- 2026新能源领域薄膜过滤材料应用场景开发与商业模式探索报告
- 《小小演奏家 赛龙夺锦》课件2026-2027学年人教版五年级上册音乐
- 《第2课 有趣的平面空间》教学设计-2026-2027学年五年级美术上册岭美版
- 乌鲁木齐辅警考试仿真试题及答案解析
- 高级经济师房地产与建筑经济真题及答案
- 2026年山东省聊城市辅警协警笔试练习题(含答案)
评论
0/150
提交评论