freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

表和約束ppt課件-wenkub

2023-05-18 06:20:42 本頁面
 

【正文】 ved. 本章要點 ?? 創(chuàng)建表 ?? 修改表 ?? 刪除表 ?? 重命名 ?? 截斷表 ?? 數(shù)據(jù)完整性約束 Copyright 169。 –名字不能為 Oracle的保留字。 Oracle Corporation, 2022. All rights reserved. 創(chuàng)建表 DESCRIBE dept CREATE TABLE DOSSIER (ID NUMBER(4), CNAME VARCHAR2(20 ), BIRTHDAY DATE, STATURE NUMBER(3), WEIGHT NUMBER(5, 2), COUNTRY_CODE CHAR(2 ) DEFAULT ‘01’)。 , to_date(39。),226, 134 )。 Oracle Corporation, 2022. All rights reserved. 使用子查詢創(chuàng)建表 ?? 使用子查詢創(chuàng)建表的語法 CREATE TABLE table [(column, column...)] AS subquery。如user_tables。 Copyright 169。 ALTER TABLE table MODIFY (column datatype [DEFAULT expr] [, column datatype]...)。 Oracle Corporation, 2022. All rights reserved. 添加新列 ?用 ADD字句添加列 ?新列成為最后的列 ALTER TABLE dept80 ADD (job_id VARCHAR2(9))。 Oracle Corporation, 2022. All rights reserved. 刪除列 用 DROP COLUMN子句從表中刪除列 ALTER TABLE dept80 DROP COLUMN job_id。 Oracle Corporation, 2022. All rights reserved. 改變一個對象的名字 ?執(zhí)行 RENAME語句,改變一個表、視圖、序列或同義詞 You must be the owner of the object. RENAME dept TO detail_dept。 Oracle Corporation, 2022. All rights reserved. 添加注釋到表中 ?用 COMMENT語句添加注釋到一個表或列中 ?注釋能夠通過數(shù)據(jù)字典視圖查看: –ALL_COL_COMMENTS –USER_COL_COMMENTS –ALL_TAB_COMMENTS –USER_TAB_COMMENTS COMMENT ON TABLE employees IS 39。 Oracle Corporation, 2022. All rights reserved. 約束原則 ?命名一個約束,或者由 Oracle 用 SYS_Cn格式產(chǎn)生一個名字?創(chuàng)建一個約束: –在創(chuàng)建表的同時,或者 –在創(chuàng)建表之后 ?在列或者表級定義一個約束 ?在數(shù)據(jù)字典中查看約束 Copyright 169。 Oracle Corporation, 2022. All rights reserved. 定義約束 ?列級約束 ?表級約束 column [CONSTRAINT constraint_name] constraint_type, column,... [CONSTRAINT constraint_name] constraint_type (column, ...), Copyright 169。 Oracle Corporation, 2022. All rights reserved. UNIQUE約束 既可以定義在表級也可以定義在列級: CREATE TABLE employees( employee_id NUMBER(6), last_name VARCHAR2(25) NOT NULL, VARCHAR2(25), salary NUMBER(8,2), mission_pct NUMBER(2,2), hire_date DATE NOT NULL, ... CONSTRAINT emp__uk UNIQUE()
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1