OCP 1Z0 051 名稱解析 文章32稱號

2021-09-07 02:37:59 字數 1006 閱讀 6844

32. which create table statement is valid?

a. create table ord_details         

(ord_no number(2) primary key,  

item_no number(3) primary key,  

ord_date date not null);

b. create table ord_details         

(ord_no number(2) unique, not null,  

item_no number(3),  

ord_date date default sysdate not null);

c. create table ord_details         

(ord_no number(2) ,  

item_no number(3),  

ord_date date default not null,  

constraint ord_uq unique (ord_no),  

constraint ord_pk primary key (ord_no));

d. create table ord_details  

(ord_no number(2),  

item_no number(3),  

ord_date date default sysdate not null,  

constraint ord_pk primary key (ord_no, item_no)); 

answer: d 

a:錯誤。乙個表中僅僅能有乙個主鍵

b:錯誤。unique後面多了個「,「,逗號是字段之間的分隔符,多個約束之間用空格

c:錯誤。default後面沒有預設值。

d:對。

每日一題 OCP1z0 047 2013 08

每日一題 ocp1z0 047 2013 08 03約束 延遲約束 這題是考延遲約束的相關知識點。在表cust設了主鍵cust id 唯一並且非空 在主鍵設延遲約束,所謂延遲約束就是在dml時資料庫不判斷資料是否滿足約束,在commit時來判斷,如果commit,做dml操作時 這道題是插入的資料如...

OCP 1Z0 051 標題決心 文章5稱號

5.which sql statements would display the value 1890.55 as 1,890.55?choose three a.select to char 1890.55,0g000d00 from dual b.select to char 1890.55,9...

105032014138 牟平 z作業1

2 nextdate函式問題 nextdate函式說明一種複雜的關係,即輸入變數之間邏輯關係的複雜性 nextdate函式包含三個變數month day和year,函式的輸出為輸入日期後一天的日期。要求輸入變數month day和year均為整數值,並且滿足下列條件 條件1 1 month 12 否...