当前位置:网站首页>Oracle database knowledge points (I)
Oracle database knowledge points (I)
2022-07-04 00:41:00 【zhulin1028】
Catalog
Preface :
ORACLE Five types of integrity constraints are supported
NOT NULL ( Non empty )-- prevent NULL Value into the specified column , Define... On a single column basis , By default ,ORACLE Allow... In any column NULL value .
CHECK ( Check )-- Check whether the conditions specified in the constraint are met .
UNIQUE ( only )-- Ensure that there are no duplicate values in the specified column . Each value or group of values in the table will be unique .
PRIMARY KEY ( Primary key )-- Used to uniquely identify each row of the table , And prevent NULL value , A table can only have one primary key constraint .
FOREIGN KEY ( External key )-- Establish a parent-child relationship between tables by using common columns (parent-child) Relationship , The external key defined on the table can point to the primary key or the unique key of other tables .ORACLE Five types of integrity constraints are supported
NOT NULL ( Non empty )-- prevent NULL Value into the specified column , Define... On a single column basis , By default ,ORACLE Allow... In any column NULL value .
CHECK ( Check )-- Check whether the conditions specified in the constraint are met .
UNIQUE ( only )-- Ensure that there are no duplicate values in the specified column . Each value or group of values in the table will be unique .
PRIMARY KEY ( Primary key )-- Used to uniquely identify each row of the table , And prevent NULL value , A table can only have one primary key constraint .
POREIGN KEY ( External key )-- Establish a parent-child relationship between tables by using common columns (parent-child) Relationship , The external key defined on the table can point to the primary key or the unique key of other tables .
One . Introduction part
1. Create tablespace
create tablespace schooltbs datafile ‘D:\oracle\datasource\schooltbs.dbf’ size 10M autoextend on;2. Delete tablespace
drop tablespace schooltbs[including contents and datafiles];3. Query the basic information of table space
select *||tablespace_name from DBA_TABLESPACES;4. Create user
create user lihua
identified by lihua
default tablespace schooltbs
temporary tablespace temp;5. Change user
alter user lihua
identified by 123
default tablespace users;6. Lock the user
alter user lihua account lock|unlock;7. Delete user
drop user lihua cascade;-- Delete user mode 8. oracle Roles in the database
connect,dba,select_catalog_role,delete_catalog_role,execute_catalog_role,exp_full_database,imp_full_database,resource9. Grant the role of connecting to the server
grant connect to lihua;10. Grant roles that use tablespaces
grant resource to lihua with grant option;-- The user also has authorized permission 11. Grant permissions to the operation table
grant select,insert on user_tbl to scott;-- The current user
grant delete,update on lihua.user_tbl to scott;-- System administrator 12. Modify the structure of the table (alter)
Alter table Table name add( Column name , The type of the column );边栏推荐
- Several ways to set up a blog locally [attach relevant software download links]
- 国元证券开户是真的安全可靠吗
- Global and Chinese market of breast cancer imaging 2022-2028: Research Report on technology, participants, trends, market size and share
- Eight year test old bird, some suggestions for 1-3 year programmers
- Stock price forecast
- Regular expression of shell script value
- Data storage - interview questions
- [C language] break and continue in switch statement
- 2-Redis架构设计到使用场景-四种部署运行模式(下)
- It's OK to have hands-on 8 - project construction details 3-jenkins' parametric construction
猜你喜欢

2-redis architecture design to use scenarios - four deployment and operation modes (Part 2)

Future source code view -juc series

机器学习基础:用 Lasso 做特征选择

Unity elementary case notes of angry birds Siki college 1-6

手机异步发送短信验证码解决方案-Celery+redis

It's OK to have hands-on 8 - project construction details 3-jenkins' parametric construction

A Kuan food rushed to the Shenzhen Stock Exchange: with annual sales of 1.1 billion, Hillhouse and Maotai CCB are shareholders

Joint examination of six provinces 2017
![[common error] custom IP instantiation error](/img/de/d3f90cd224274d87fcf153bb9244d7.jpg)
[common error] custom IP instantiation error

NLP pre training technology development
随机推荐
Anomalies seen during the interview
Att & CK actual combat series - red team actual combat - V
不得不会的Oracle数据库知识点(三)
ITK learning notes (VII) the position of ITK rotation direction remains unchanged
Speed up the energy Internet of things. What can low-power Internet of things technology represented by Zeta do?
网上的低佣金链接安全吗?招商证券怎么开户?
Global and Chinese markets for coronary artery disease treatment devices 2022-2028: Research Report on technology, participants, trends, market size and share
CesiumJS 2022^ 源码解读[8] - 资源封装与多线程
NLP pre training technology development
[complimentary ppt] kubemeet Chengdu review: make the delivery and management of cloud native applications easier!
功能:求5行5列矩阵的主、副对角线上元素之和。注意, 两条对角线相交的元素只加一次。例如:主函数中给出的矩阵的两条对角线的和为45。
功能:编写函数fun求s=1^k+2^k +3^k + ......+N^k的值, (1的K次方到N的K次方的累加和)。
Function: find the approximate value of the limit of the ratio of the former term to the latter term of Fibonacci sequence. For example, when the error is 0.0001, the function value is 0.618056.
[dynamic programming] leetcode 53: maximum subarray sum
Software testers, how can you quickly improve your testing skills? Ten minutes to teach you
我管你什么okr还是kpi,PPT轻松交给你
删除所有值为y的元素。数组元素中的值和y的值由主函数通过键盘输入。
swagger中响应参数为Boolean或是integer如何设置响应描述信息
Stock price forecast
The first training of wechat applet