麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 數據庫 > Oracle > 正文

Oracle學習筆記(五)

2024-08-29 13:56:10
字體:
來源:轉載
供稿:網友
組合集總計:
group by with rollup/cube
grouping sets
子查詢按執行方式分:標準子查詢、關聯子查詢
標準子查詢:嵌套子查詢
標量值查詢
case with then
使用exits查詢
select user_id,user_name from tb_001 tb
where [not] exists (select 'x'
from tb_001
where manager_id=tb.user_id )
關聯更新
update table1 alias1
set column=(select expression
from table2 alias2
where alias1.column=alias2.column);
關聯刪除
delete from table1 alias11
where column operator
(select expression
from table2 alias2
where alias1.column=alias2.column);
分層結構
分層檢索
select [level],column,expr...
from table
[where with condition(s)]
[connect by prior condition(s)]
connect by prior column1=column2
top down:
colum1=parentkey
column2=childkey
bottom up:
column1=childkey
column2=parentkey

插入語句insert statement
insert into table[(column[,column...])]
values(value[,value...])
修改語句update statement
update table
set column=value[,column=value,...]
[where condition];

多表插入語句(Multitable Insert Statements)

insert [all] [conditional_insert_clause]
[insert_into_cause values_clause](subquery)
conditional_insert_clause
[all][first]
[when condition then][insert_into_clause values_clause]
[else][insert_into+clause values_clause]
列:
intsert all
into tb_user values(id,uid,upwd)
into tb_user_info values(id,name,sex,age)
select id,uid,upwd,name,sex,age
from tb_u_10
where id>10000;
待條件的多行插入
insert all
when id>11000 then
into tb_user values(id,uid,upwd)
when age>40 then
into tb_user_info values(id,name,sex,age)
select id,uid,upwd,name,sex,age
from tb_u_10
where id>10000;
insert first
when conditional then
into ...
when conditional then
into ...
else
into...
select...
創建索引
cretate table t_10
(id number(6) not null primary key using index (create index index1 on t_10(id)),
name varchar2(50));
查詢索引
select * from user_indexes;
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 欧美日韩一 | 成人免费福利视频 | 中文字幕精品在线视频 | 九九热九九热 | 国产精品久久久久久久久久10秀 | 欧美不卡视频在线观看 | 亚洲成人激情av | 久久久久久久久久久高潮一区二区 | 视频一区二区精品 | 长泽雅美av | www.成人在线| jizzyouxxxx | 欧美不卡 | 久久国产中文字幕 | 91快色视频| 国内免费视频成人精品 | 91在线视频导航 | 黄色va视频 | 蜜桃视频在线免费播放 | 亚洲人成综合第一网 | 二区三区四区视频 | 亚洲精华液久久含羞草 | 亚洲精品v天堂中文字幕 | 亚洲精品成人18久久久久 | 中文字幕视频在线播放 | 国产成年免费视频 | 免费毛片视频 | 国产毛片在线 | 欧美日韩在线免费观看 | 色av成人天堂桃色av | 久久网站热最新地址4 | 久久久av亚洲男天堂 | 羞羞视频在线免费 | 日本高清黄色片 | 国产九色在线观看 | 精品一区二区中文字幕 | 在线a毛片免费视频观看 | 久久久久久艹 | 午夜国产精品成人 | 特级毛片a级毛片100免费 | 久久精品视频一区二区三区 |