好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁(yè) > 知識(shí)庫(kù) > Oracle學(xué)習(xí)筆記(四)

Oracle學(xué)習(xí)筆記(四)

熱門標(biāo)簽:地圖標(biāo)注付款了怎么找不到了 北京外呼系統(tǒng)公司排名 沈陽(yáng)400電話是如何辦理 北京營(yíng)銷外呼系統(tǒng)廠家 外呼系統(tǒng)口號(hào) 溫州人工外呼系統(tǒng) 貴陽(yáng)智能電銷機(jī)器人官網(wǎng) 百度地圖標(biāo)注員是干什么 外呼系統(tǒng)鄭州

一、控制用戶存取
1、創(chuàng)建修改用戶Creating Users
Create/alter user new_user identified by password;
例:create user user_1 indentified by pwd_1
alter user user_1 identified by pwd_2
2、給用戶授予權(quán)限
grant privilege[,privilege] to user [,user|role,public...]
一些系統(tǒng)權(quán)限:
create session/table/sequence/view/procedure

alter/delete/execute/index/insert/references/select/update
grant object_priv [(columns)]
on object
to {user|role|public}
[with grant option]
例如:
給用戶user_1授予查詢tt1表的權(quán)限
grant select on tt1表 to user_1
給用戶user_1授予修改“表1”中(列1,列2)的權(quán)限
grant update(列1,列2) on 表1 to user_1;
給用戶user_1 授予查詢權(quán)限并可以把該權(quán)限授予其他用戶的權(quán)限
grant select
on tt1表
to user_1
with grant option
把權(quán)限授予所有用戶
grant select
on 表1
to public;

給用戶user_1授權(quán)
grant create session to user_1;

二、創(chuàng)建角色并給角色授權(quán)
1、創(chuàng)建角色
create role mangager;
例如:create role test_role1;
2、給角色授權(quán)
grant create table,create view to manager;
例如:grant create table to test_role1;

3、把角色授予用戶
grant manager to user_1,user_2...
grant test_user1 to user_1;

三、取消用戶權(quán)限
revoke {privilege [,privilege...]|all}
on object
from {user[,user...]|role|public}
[cascade constraints];

revoke select on 表1 from user_1;

四、Database Links
create public database link hq.acme.com using 'sales';
select * from emp@hq.acme.com;

五、 oracle取并集、交集、差集
所取的列的數(shù)據(jù)類型必須兼容
1、取并集
union :會(huì)對(duì)數(shù)據(jù)排序,重復(fù)記錄壓縮,union all不會(huì)
select employee_id,job_id from employess
union
select employee_id,job_id from job_history;
取所有并集不去除重復(fù)數(shù)據(jù)
select employee_id,job_id from employess
union all
select employee_id,job_id from job_history;

2、取交集
select employee_id,job_id from employess
intersect
select employee_id,job_id from job_history;

3、差集
表employess去掉共同擁有的數(shù)據(jù)
select employee_id,job_id from employess
minus
select employee_id,job_id from job_history;

六、日期時(shí)間函數(shù)
求時(shí)差
select tz_offset('US/Eastern') from dual;

alter session set time_zone='-8:0';
select sessiontimezone,current_date from dual;
alter session set time_zone='-8:0';
select sessiontimezone,current_timestamp from dual;

alter session set time_zone='-8:0';
select current_timestamp,localtimestamp from dual;

select dbtimezone,sessiontimezone from dual;
select from_tz(timestamp'2000-03-23 08:00:00','3:00') from dual;

select to_timestamp('2000-02-01 11:00:00','YYYY-MM-DD HH:MI:SS')from dual;

select to_timestamp_tz('2000-02-01 11:00:00','YYYY-MM-DD HH:MI:SS TZH:TZM')from dual;
to_ymininterval()

您可能感興趣的文章:
  • Oracle學(xué)習(xí)筆記(六)
  • Oracle學(xué)習(xí)筆記(五)
  • oracle學(xué)習(xí)筆記(三)
  • oracle學(xué)習(xí)筆記(二)
  • Oracle學(xué)習(xí)筆記(一)

標(biāo)簽:通遼 衢州 衡水 定西 潮州 淮北 包頭 溫州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Oracle學(xué)習(xí)筆記(四)》,本文關(guān)鍵詞  Oracle,學(xué)習(xí),筆記,四,Oracle,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Oracle學(xué)習(xí)筆記(四)》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于Oracle學(xué)習(xí)筆記(四)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 日本一特黄a大片 全民影院| 一级毛片免费播放| yy6808午夜久久久久精品| 久久久亚洲熟妇熟女ⅩXXX图| 亚欧中文字幕| 国产毛片之女人本色| 爽好舒服好紧h文电影| 和黑帮大佬的365天第二部电影无删减 | 国产99久久精品| 波多野爆吞多人精子| 亚洲辣妺嘘嘘gush尿| 欧美经典老电影禁忌盒装dvd| 西西人体gogo大尺度| 国产另类重口调教在线| 三攻一受4p巨肉寝室文| 冲动的惩罚未删减在线观看中文 | 91亚洲区国产区精品区| 看全色黄大色黄大片女图片第一次| 欧美一级婬片免费视频1| 荡公乱妇视频| 国产伦久视频免费观看视频| 中文字幕网站| 网站黄色在线观看| 香港美女BBBBBB爽爽| 人妻久久久精品996系列A片| 国产熊片民工壮熊| 欧美人与牲禽ⅹxxx伦交| 伊播影院| 91九色在线观看| 欧美男青年巨大Gay内裤| 被舔的好爽| 韩日a级片| 总裁被下属调教H玩弄尿孔的视频| AV香港经典三级级 在线| 乱肉合集乱500篇小说TXT| 调教校花浣肠开菊| 美女扒开屁股让男桶到爽| 日韩国产无矿砖一线二线图| 好男人在线社区WWW免费观看好 | 美女被狂捏胸亲嘴免费视频| 中国bbwbbw|