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));

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));


相关考题:

MongoDB的数据类型为()。 A.Key-ValueB.Key-ValueC.DocumentsD.Column-family

Statement是PreparedStatement的父接口。Statement对象用于执行不带参数的简单SQL语句;PreparedStatement对象用于执行预编译SQL语句。() 此题为判断题(对,错)。

部门DEPT(Deptno,Name,Tel,Leader)和职工EMP(Empno,Name,Sex,Address,Deptno)实体集,若一个职工只能属于一个部门,部门负责人Leader是一个职工。关系DEPT和EMP的外码分别为(39);下图中a、b处的实体名分别为(40)。A.Deptno、EmpnoB.Name、DepmoC.Leader、DepmoD.Name、Address

● 部门DEPT(Deptno, Name, Tel, Leader) 和职工EMP(Empno, Name, Sex, Address, Deptno) 实体集,若一个职工只能属于一个部门,部门负责人 Leader 是一个职工。关系DEPT和EMP的外码分别为 (30) ;下图中a、b处的实体名分别为 (31) 。(30)A. Deptno、EmpnoB. Name、 DeptnoC. Leader、DeptnoD. Name、 Address(31)A. DEPT、EmpnoB. DEPT、EMPC. EMP、DeptnoD. EMP、DEPT

部门DEPT(Deptno,Name,Tel,Leader)和职工EMP(Empno,Name,Sex,Address, Deptno)实体集,若一个职工只能属于一个部门,部门负责人Leader是一个职工。关系 DEPT和EMP的外码分别为(30);下图中a、b处的实体名分别为(31)。A.Deptno、EmpnoB.Name、DeptnoC.Leader、DeptnoD.Name、Address

下列选项中,关于Statement描述错误的是()A.Statement是用来执行SQL语句的B.Statement是PreparedStatement的子接口C.获取Statement实现需要使用Connection的createStatement()方法D.PreparedStatement能使用参数占位符,而Statement不行

列出所有部门的职工人数(包括没有职工的部门) ()。A.select dept.deptno,dname,count(emp.empno) from emp,dept where emp.deptno=dept.deptno group by dept.deptno,dname;B.select dept.deptno,dname,count(emp.empno) from emp,dept where emp.deptno()=dept.deptno group by dept.deptno,dname;C.select dept.deptno,dname,count(emp.empno) from emp,dept where emp.deptno=dept.deptno() group by dept.deptno,dname;D.select dept.deptno,dname,count(emp.empno) from emp,dept where emp.deptno(

7、Statement对象提供了执行基本SQL语句的功能。

下列选项中,关于Statement描述错误的是()A.Statement是用来执行SQL语句的B.Statement是PreparedStatement的子接口C.获取Statement实现需要使用Connection的createStatement()方法D.PreparedStatement能使用参数占位符,而Statement不行

Statement对象本身包含SQL语句。