当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

Which SQL statement defines the FOREIGN KEY constraint on the DEPTNO column of the EMP table? ()


Which SQL statement defines the FOREIGN KEY constraint on the DEPTNO column of the EMP table? ()

A. CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) NOT NULL CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);

B. CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));

C. CREATE TABLE EMP (empno NUMBER(4) ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));

D. CREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));

参考答案
您可能感兴趣的试题
  • Using the #define statement, how would you declare a manifest constant that returns th

  • Using the #define statement, how would you declare a manifest constant that returns th

  • Examine this command:SQL > exec DBMS_STATS.SET_TABLE_PREFS (‘SH’ ‘CUSTOMERS’ ‘PUBLISH’ ‘false’);Which three statements are true about the effect of this command?()

  • Which of the following SQL statements will return the year and average salary for all employees hired within a given year that have a salary greater than $30 000?()

  • Evaluate the SQL statement DROP TABLE DEPT: Which four statements are true of the SQL statement? ()

  • Which SQL statement defines a FOREIGN KEY constraint on the DEPTNO column of the EMP table?()