网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
根据SQL标准,增加一个新的字段sdate到表student中,该字段为可容纳7个字符的定长字符串,下面哪条语句可以参考表述?()
A insert into student sdate char(7)
B add sdate char(7) to student
C append sdate varchar(7) to table student
D alter table student add sdate varchar(7)
E alter table student add sdate char(7)
F alter table student modify sdate char(7)
参考答案
更多 “ 根据SQL标准,增加一个新的字段sdate到表student中,该字段为可容纳7个字符的定长字符串,下面哪条语句可以参考表述?()A insert into student sdate char(7)B add sdate char(7) to studentC append sdate varchar(7) to table studentD alter table student add sdate varchar(7)E alter table student add sdate char(7)F alter table student modify sdate char(7) ” 相关考题
考题
若要在基本表S中增加一列CN(课程名),可用( )A.ADD TABLE S ALTER(CN CHAR(8))B.ALTER TABLE S ADD(CN CHAR(8))C.ADD TABLE S(CN CHAR(8))D.ALTER TABLE S (ADD CN CHAR(8))
考题
要给学生信息表(STUDENT)增加一个出生日期字段(日期型),下面正确的是____A CREATE TABLE STUDENT ADD COLUMN 出生日期 DATETIMEB ALTER TABLE STUDENT ALTER COLUMN 出生日期 DATETIMEC ALTER TABLE STUDENT ADD COLUMN 出生日期 DATETIMED ALTER TABLE STUDENT SET COLUMN 出生日期 DATETIME
考题
You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty. Which statement accomplishes this task?()
A. ALTER TABLE students ADD PRIMARY KEY _ id;B. ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student_id);C. ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;D. ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);E. ALTER TABLE students MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
考题
根据SQL标准,删除表student中对字段sno的唯一性约束,应该使用下面哪条语句? ()A drop sno from table studentB alter table student drop snoC alter table student drop unique(sno)D alter table student drop sno unique
考题
Which statement explicitly names a constraint? ()
A. ALTER TABLE student_grades ADD FOREIGN KEY (student_id) REFERENCES students (student_id);B. ALTER TABLE student_grades ADD CONSTRAINT NAME = student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id);C. ALTER TABLE student_grades ADD CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id);D. ALTER TABLE student grades ADD NAMED CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id);E. ALTER TABLE student grades ADD NAME student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id);
考题
假设有student表,可以正确添加字段“平均分数”的命令是( )。A.ALTER TABLE student ADD平均分数F(6,2)B.ALTER DBF student ADD平均分数F6,2C.CHANGE TABLE student ADD平均分数F(6,2)D.CHANGE TABLE student INSERT平均分数6,2
考题
为“仓库”表增加一个“面积”字段,类型为数值型,宽度是7,小数位数为2,正确的命令是( )。A.CREATE TABLE 仓库 ADD 面积 N(7,2)B.CREATE TABLE 仓库 ALTER 面积 N(7,2)C.ALTER TABLE 仓库 ADD 面积 N(7,2)D.ALTER TABLE 仓库 ALTER 面积 N(7,2)
考题
假设有Student表,可以正确添加字段“平均分数”的命令是( )。A.ALTER TABLE student ADD平均分数 F(6,2)B.ALTE RDBF Student ADD 平均分数F 6,2C.CHANGE TABLE Student ADD 平均分数F(6,2)D.CHANGE TABL Estudent INSERT平均分数6,2
考题
若要在基本表S中增加一列CN(课程名),可用( )。A.ADD TABLE (CN CHAR (8))B.ADD TABLE ALTER (CN CHAR (8))C.ALTER TABLE ADD (CN CHAR (8))D.ALTTER TABLE ADD (CN CHAR (8))
考题
将Student.dbf表中jg字段的名称改为籍贯,如下选项中正确的SQL语句是A)ALTER TABLE student ALTER COLUMN jg TO籍贯B)ALTER TABLE student ADD籍贯C(10)C)ALTER TABLE student RENAME jg TO籍贯D)ALTER TABLE student RENAME jg籍贯
考题
若要在基本表S中增加一列CN(课程名),可用( )。 A.ADD TABLE S(CN CHAR(8)) B.ADD TABLE S A
若要在基本表S中增加一列CN(课程名),可用( )。A.ADD TABLE S(CN CHAR(8))B.ADD TABLE S ALTER(CN CHAR(8))C.ALTER TABLE S ADD(CN CHAR(8))D.ALTER TABLE S (ADD CN CHAR(8))
考题
一个信息表student,要求它由学号sno,姓名sname,性别sex,年龄age,4个属性组成。现在对这个现有的表增加一个入学时间cometime字段为日期型,下列语句正确的是______。A.AITER TABLE student ADD cometime DATE NOT NULL;B.ALTER TABLE student ADD cometime DATE;C.ALTER TABLE student DROP cometime DATE NOT NULL;D.ALTER TABLE student MODIPY cometime DATE;
考题
给student表增加一个“平均成绩”字段(数值型,总宽度6,2位小数)的SQL命令是A.ALTER TABILE student ADD平均成绩N(6,2)B.ALTER TABLE student ADD平均成绩D(6,2)C.ALTER TABLE student ADD平均成绩E(6,2)D.ALTER TABLE student ADD平均成绩Y(6,2)
考题
一个学生信息表student,要求它由学号sno,姓名sname,性别sex,年龄age,4个属性组成。现在对这个现有的表增加一个入学时间cometime字段为日期型,下列语句正确的是A.ALTER TABLE student ADD cometime DATE NOT NULL;B.ALTER TABLE student ADD cometime DATE;C.ALTER TABLE student DROP cometime DATE NOT NULL:D.ALTER TABLE student MODIFY cometime DATE;
考题
将Student.dbf表中jg字段的名称改为籍贯,如下选项中正确的SQL语句是( )。A.ALTER TABLE student ALTER COLUMN jg TO 籍贯B.ALTER TABLE student ADD 籍贯 C(10)C.ALTER TABLE student RENAME jg TO 籍贯D.ALTER TABLE student RENAME jg 籍贯
考题
给student表增加一个“平均成绩”字段(数值型,总宽度6,2位小数)的SQL命令是( )。A.ALTER TABLE student ADD平均成绩N(6,2)B.ALTER TABLE student ADD平均成绩D(6,2)C.ALTER TABLE student ADD平均成绩E(6,2)D.ALTER TABLE student ADD平均成绩Y(6,2)
考题
( 25 )假设有 student 表,可以正确添加字段 “ 平均分数 ” 的命令是A ) ALTER TABLE student ADD 平均分数 F(6,2)B ) ALTER DBF student ADD 平均分数 F 6,2C ) CHANGE TABLE student ADD 平均分数 F(6,2)D ) CHANGE TABLE student INSERT 平均分数 6,2
考题
SQL server中()语句能将temp表中的hostname字段扩充为varchar(100)。A、alter table temp alter column hostname varchar(1100)B、alter table temp column hostname varchar(100)C、alter table temp alter column of hostname varchar(100)D、alter table temp add column hostname varchar(100)
考题
修改表结构,下面哪一语句是正确的()A、ALTER TABLE cw km ADD istagB、ALTER TABLE cw km (ADD istag char(1))C、ALTER TABLE cw km ADD istag char(1)D、ALTER cw km ADD istag char(1)
考题
You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty.Which statement accomplishes this task?()A、ALTER TABLE students ADD PRIMARY KEY student_id;B、ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student _ id);C、ALTER TABLE students ADD CONSTRAINT stud _ id _pk PRIMARY KEY (student _ id);D、ALTER TABLE students MODIFY CONSTRAINT stud _ id _pk PRIMARY KEY (student _ id);
考题
You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty. Which statement accomplishes this task?()A、ALTER TABLE students ADD PRIMARY KEY _ id;B、ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student_id);C、ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;D、ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);E、ALTER TABLE students MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
考题
Which statement explicitly names a constraint?()A、ALTER TABLE student_grades ADD FOREIGN KEY (student_id) REFERENCES students(student_id);B、ALTER TABLE student_grades ADD CONSTRAINT NAME = student_id_fk FOREIGN KEY (student_id) REFERENCES students(student_id);C、ALTER TABLE student_grades ADD CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students(student_id);D、ALTER TABLE student grades ADD NAMED CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students(student_id);E、ALTER TABLE student grades ADD NAME student_id_fk FOREIGN KEY (student_id) REFERENCES students(student_id);
考题
You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty. Which statement accomplishes this task?()A、ALTER TABLE students ADD PRIMARY KEY student_id;B、ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student_id);C、ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;D、ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);E、ALTER TABLE students MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
考题
CREATE TABLE test(t_idINT,t_nmae CHAR(10))后,增加t_sex字段,以下语句正确的是()。A、ALTER TABLE test ADD t_sex CHAR(2)B、ALTER TABLE test ADD t_sexC、ALTER TABLE test ALTER t_sex CHAR(2)D、ALTER TABLE test DROP(t_sex CHAR(2))
考题
单选题SQL server中()语句能将temp表中的hostname字段扩充为varchar(100)。A
alter table temp alter column hostname varchar(1100)B
alter table temp column hostname varchar(100)C
alter table temp alter column of hostname varchar(100)D
alter table temp add column hostname varchar(100)
考题
单选题假设有student表,可以正确添加字段“平均分数”的命令是( )。A
ALTER TABLE student ADD平均分数F(6,2)B
ALTER DBF student ADD平均分数F6,2C
CHANGE TABLE student ADD平均分数F(6,2)D
CHANGE TABLE student INSERT平均分数6,2
考题
单选题给student表增加一个“平均成绩”字段(数值型,总宽度6,2位小数)的SQL命令是( )。A
ALTER TABLE student ADD平均成绩N(6,2)B
ALTER TABLE student ADD平均成绩D(6,2)C
ALTER TABLE student ADD平均成绩E(6,2)D
ALTER TABLE student ADD平均成绩Y(6,2)
热门标签
最新试卷