employees表结构些如下: PLOYEE_ID NUMBER Primary Key RST_NAME VARCHAR2(25) ST_NAME VARCHAR2(25) NOT NULL 哪条语句正确插入employees一条记录?
举一反三
- 下来定义表的约束语法,错误的是() A: create table t1(id number primary key,name varchar2(10)) B: create table t1(id number constraint p_k primary key(id),name varchar2(10)) C: create table t1(id number constraint p_k primary key,name varchar2(10)) D: create table t1(id number,name varchar2(10),primary key(id))
- SQL语句的程序清单如下: create table employees( id char(8) primary key, name char(20) not null, department char(20) null, memo char(30) null, age int null, ) alter table employees add salary int null, drop column age, alter column memo varchar(200) null 下面说法正确的是?
- You own a table called EMPLOYEES with this table structure: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE What happens when you execute this DELETE statement? DELETE employees;() A: AYou get an error because of a primary key violation. B: BThe data and structure of the EMPLOYEES table are deleted. C: CThe data in the EMPLOYEES table is deleted but not the structure. D: DYou get an error because the statement is not syntactically correct.
- 在Oracle中,有一个教师表teacher的结构如下: ID NUMBER(5) NAME VARCHAR2(25) EMAIL VARCHAR2(50) 下面哪个语句显示没有Email地址的教师姓名;
- 学生表结构如下: CREATE TABLE 学生表 ( 学号 varchar(14) PRIMARY KEY, 姓名 varchar(8) NOT NULL, 班级编号 varchar(14) , 年级 int null, 性别 varchar(2) , 民族 varchar(20) , 籍贯 varchar(50) ) 为学生表增加家庭住址列,语句为: ALTER TABLE 学生表 ADD 家庭住址 varchar(20) NULL