In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "oracle query related command arrangement," interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "oracle query related command sorting"!
---
manually create
reference creating
e1 emp ---- ename,sal,deptno
sal--gz
create table e1 (ename,gz,deptno) as select ename,sal,deptno from emp;
create table e2 as select ename, sal gz,deptno from emp;
--CREATE
--TRUNCATE TABLE T1;
--ALTER
Column Name Data Type Length Increase Column Delete Column
--Increase
ALTER TABLE XXX ADD (address varchar2(10),sex varchar2(20));
--Delete
ALTER TABLE XXX DROP COLUMN XXX;
ALTER TABLE XXX DROP (XXXX,XXX)
--Modify Type Length Modify Type
ALTER TABLE XXX MODIFY (empno number(10))
--Change column name
ALTER TABLE XXX RENAME COLUMN old TO new;
--RENAME Modify table name
RENAME old TO new;
---DROP Delete Table
DROP TABLE xxx
show recyclebin
purge
drop table xxx purge;
flashback table xxx to before drop rename to xxx;
---COMMENT
Table comment on table xx is ' '
column
-------------------------
DML
INSERT INTO xxx VALUES (xxx,xxx,xxx);
UPDATE
DELETE
NCHAR
NVARCHAR2
create table t1 (name nvarchar2(20));
BJ 2000km GZ
aircraft
train
automobile
bicycle
Route 11 500KM/H 4
merge collaborative update
A--------B
merge into myemp m
using emp e
on (e.empno=m.empno)
when matched then
update set m.ename=e.ename,m.sal=e.sal;
merge into p1
using p2
on (p2.empno=p1.empno)
when not matched then
insert values(p2.empno,p2.sal,p2.ename);
---------------------------------------------------------------------
TCL
commit
rollback
---savepoint
The four attributes ACID of transactions are Atomicity, Consistency, Isolation and Durability.
transaction
Basic Attributes 4 A C I D
tj (ename , sal)
a---1000----b
update tj set sal=sal-1000 where ename='A'
update tj set sal=sal+1000 where ename='B'
began
The first DML statement.
At this point, I believe we have a deeper understanding of "oracle query related command finishing", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.