oracle_11gr2_13 数据完整性 - 创建约束(主键,外键,check,非空) 和 索引的使用(Oracle_11gr2_13 data integrity - create constraints (primary keys, foreign keys, check, non empty) and index usage).docVIP
- 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_11gr2_13 数据完整性 - 创建约束(主键,外键,check,非空) 和 索引的使用(Oracle_11gr2_13 data integrity - create constraints (primary keys, foreign keys, check, non empty) and index usage)
oracle_11gr2_13 数据完整性 - 创建约束(主键,外键,check,非空) 和 索引的使用(Oracle_11gr2_13 data integrity - create constraints (primary keys, foreign keys, check, non empty) and index usage)
Set operation
The results of multiple query statements can be set operations, and the result sets should have the same field type, number, and order.
Oracle has 4 set operations
UNION: Union, the merger of the two operating results, remove duplicate parts
The UNION ALL: Union, the merger of the two operating results, keep the duplicate part
The MINUS: difference set removes the same part of the result from the previous operation
The intersection of INTERSECT: takes the same part of the result of the two operations
Search department 10 and department 20 for all positions.
SELECT, job, FROM, employee, WHERE, deptno=10
UNION
SELECT, job, FROM, EMP, WHERE, deptno=20;
Are there any similar positions and salaries in the enquiry departments 10 and 20?.
SELECT, job, Sal, FROM, employee, WHERE, deptno=10
INTERSECT
SELECT, job, Sal, FROM, employee, WHERE, deptno=20
Queries appear only in department tables, but no sector numbers appear in the employee tables
SELECT deptno FROM Dept
MINUS
SELECT deptno FROM employe
The tutorial uses Oracle 11g Release 2 version
Content: data integrity - create constraints (primary keys, foreign keys, CHECK, non empty) and index usage
===============================================
Why do you need the primary key? The uniqueness of the primary key (the data cannot be duplicated), and basically every table will have the primary key
Create a student table:
CREATE, TABLE, xue_sheng (ID, integer, xing_ming, varchar (25), xing_bie, number, fen_shu, number, b_id, integer);
INSERT, INTO, xue_sheng, VALUES (1,ZhanSan, 1,80,1);
INSERT, INTO, xue_sheng, VALUES (2,LiSi, 1,90,2);
INSERT, INTO, xue_sheng, VALUES (3,ZhanHong, 0,75,2);
INSERT, INTO, xue_sheng, VALUES (4,ChenXiaoMing, 1,85,1);
If you do not set the student number ID this unique, then there will be repeated student number phenome
您可能关注的文档
- 手机bga元件的维修技术与操作技能(上)(Maintenance technology and operation skills of mobile phone BGA components (Part I)).doc
- 抚顺市采煤沉陷区管理规定(Provisions of Fushun Municipality on the administration of coal mining subsidence areas).doc
- 拉萨市城市地下管线管理暂行办法(Interim Measures for the administration of urban underground pipelines in Lhasa).doc
- 拍牌攻略(Brand introduction).doc
- 拒绝批假条 管理车间主管被泼硫酸(Refuse to fake management supervisor was splashed sulfuric acid).doc
- 拓维思资料(Invensys extension data).doc
- 拍摄十八忌(Shooting eighteen bogey).doc
- 招商基础知识(Basic knowledge of investment).doc
- 招投标临时信息(Temporary information of bidding).doc
- 招商局董事长秦晓应将国有资产分散到民众手中(China Merchants board chairman Qin Xiao state-owned assets should be dispersed into the hands of the masses).doc
- oracle外键约束三种删除行为(Oracle foreign key constraint three deletion behavior).doc
- oracle创建逻辑standby数据库(Oracle creates a logical standby database).doc
- oracle创建和删除约束(Oracle creates and deletes constraints).doc
- oracle数据库中的模式(Patterns in the Oracle Database).doc
- ora的导入与导出(Import and export of ora).doc
- osd(OSD).doc
- part-00000(part - 00000).doc
- parkingsys(parkingsys).doc
- osi模型各层功能(Each layer function of OSI model).doc
- part-synchronisation gstreamer 同步(- gstreamer 同步 synchronization).doc
文档评论(0)