亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

Oracle數據庫開發必備利器之SQL基礎

難度入門
時長 4小時14分
學習人數
綜合評分9.67
338人評價 查看評價
9.8 內容實用
9.7 簡潔易懂
9.5 邏輯清晰
  • alter tablespace test1_space online/offline(改變表空間狀態); select status from dba_tablespaces where tablespace_name=“TEST1_TABLESPACE”(查詢表空間的狀態) alter tablespace test1_tablespace read only;(設置表空間為只讀狀態) select status from dba_tablespaces where tablespace_name="TEST1_TABLESPACE"(查詢即為read only 默認聯機狀態就是讀寫狀態_ [ 查看全文 ] 3小時前
    查看全部
  • create tablespace test1_tablespace datafile 'test1file.dbf' size 10m; 大小10M的永久表空間 create temporary tablespace temptest1_tablespace tempfile 'tempfile1.dbf' size 10m; 大小10M的臨時表空間 select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';【表空間名要大寫】
    查看全部
  • truncate table new_userinfo 截斷表,只刪除表數據,不刪除表,并且刪除的數據是不可恢復的; delete from new_userinfo刪除表數據,數據可恢復; drop table new_userinfor 刪除表(刪除表結構,同時數據也就刪除了)
    查看全部
  • 增加字段:alter table userinfo(表名) add remarks(列名) varchar2(500); 修改字段的數據類型: alter table userinfo(表名) modify column_name new_datatype; 刪除字段:alter table userinfo(表名) drop column_name; 修改表中的字段名: alter table userinfo(表名) rename column column_name to new_column_name; 修改表名:rename 舊表名 to 新表名;
    查看全部
  • 字符型 char(n<2000) nchar(n<1000)漢字n為長度;varchar2(可變長度)nvarchar2(uni類型); 數值型 number(p(有效數字),s(小數點后位數))(5,2)有效數字5位,保留2位小數,float(n)二進制; 日期型date(公元前4712.1.1.到后9999.12.31)精確到秒,timestamp精確到小數秒; 大數據 blob 4g數據(二進制),clob 4g 字符串
    查看全部
  • 刪除表空間 DROP TABLESPACE tablespace_name [INCLUDING CONTENTS] --[INCLUDING CONTENTS]刪除表空間的同時刪除數據文件
    查看全部
  • 修改表空間中的數據文件 一、增加數據文件 alter tablespace tablespace_name add datafile 'xx.dbf' size xx; select file_name from dba_data_files where tablespace_name='表空間名稱' 二、刪除數據文件 alter tablespace tablespace_name drop datafile 'xx.dbf'
    查看全部
  • alter tablespace test1_space online/offline(改變表空間狀態); select status from dba_tablespaces where tablespace_name=“TEST1_TABLESPACE”(查詢表空間的狀態) alter tablespace test1_tablespace read only;(設置表空間為只讀狀態) select status from dba_tablespaces where tablespace_name="TEST1_TABLESPACE"(查詢即為read only 默認聯機狀態就是讀寫狀態_
    查看全部
  • 設置用戶的默認或臨時表空間。alert user username default|temporary tablespace tablespace_name;
    查看全部
  • 查看用戶的表空間,dba_tablespaces,user_tablespaces.
    查看全部
  • 表,視圖,procedure這些放在永久表空間。 數據庫操作當中中間執行的過程,當執行過程結束后,存放的內容就會被自動釋放掉。 undo表空間,用于事務所修改數據的舊值。
    查看全部
  • 表空間的分類
    查看全部
  • create tablespace test1_tablespace datafile 'test1file.dbf' size 10m;大小10M的永久表空間 create temporary tablespace temptest1_tablespace tempfile 'tempfile1.dbf' size 10m;大小10M的臨時表空間 select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';(表空間名要大寫)
    查看全部
  • dba_tablespaces , dab_users: 系統管理員查看的數據字典 sys、system用戶 user_tablespaces , user_users: 普通用戶所查看的數據字典 scott用戶 system:系統表空間 example的輔助表空間sysaux:數據庫實例 temp:臨時 users:數據庫用戶創建數據庫對象
    查看全部
  • 數據庫由多個表空間構成,表空間由數據文件構成 表空間——邏輯數據空間 數據文件——物理上的存儲 表空間的分類: 1.永久表空間:表,視圖等永久存儲 2.臨時表空間:存儲中間過程,暫時存放,自動釋放 3.UNDO表空間:保存被修改前信息,數據回滾,撤銷操作等
    查看全部

舉報

0/150
提交
取消
課程須知
只要知道數據庫是什么就可以來學習本課程呦!
老師告訴你能學到什么?
掌握Oracle的SQL語句基礎,為后續的課程學習打好基礎。

微信掃碼,參與3人拼團

微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網的支持!