网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

之前已经创建了一个Student的表,Age有数据类型为Int,现在改为smallint应该( )写。

A.ALTER TABLE student ALTER COLUMN sage smallint

B.ALTER TABLE student ALTER COLUMN age smallint

C.ALTER TABLE student ALTER MODIFY age smallint

D.ALTER TABLE student MODIFY sage smallint


参考答案

更多 “ 之前已经创建了一个Student的表,Age有数据类型为Int,现在改为smallint应该( )写。A.ALTER TABLE student ALTER COLUMN sage smallintB.ALTER TABLE student ALTER COLUMN age smallintC.ALTER TABLE student ALTER MODIFY age smallintD.ALTER TABLE student MODIFY sage smallint ” 相关考题
考题 下列说法正确的是()A.alter table user drop column sex;B.alter table user add sex varchar(20);C.alter table user drop sex;D.alter table user modify id int primary key;

考题 要给学生信息表(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

考题 之前已经创建了一个Student的表,Age的数据类型为Int,现在改为Smallint应该()写。 A.ALTERTABLEstudentMODIFYsagesmallintB.ALTERTABLEstudentALTERCOLUMNagesmallintC.ALTERTABLEstudentALTERMODIFYagesmallintD.ALTERTABLEstudentALTERCOLUMNsagesmallint

考题 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

考题 根据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)

考题 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

考题 将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表中“平均成绩”字段的正确SQL命令是( )。A. DELETE TABLE student DELETE COLUMN平均成绩B. ALTER TABLE student DELETE COLUMN平均成绩C. ALTER TABLE student DROP COLUMN平均成绩D. DELETE TABLE student DROP COLUMN平均成绩

考题 在Visual FoxPro中,使用SQL命令将学生表STUDENT中的学生年龄AGE字段的值增加1岁,应该的使用命令是( )。A. REPLACE AGE WITH AGE+1B. MODIFY STUDENT SET AGE=AGE+1C. ALTER STUDENT SET AGE WITH AGE+1D. UPDATE STUDENT SET AGE=AGE+1

考题 删除student表的“平均成绩”字段的正确SQL命令是( )。A.DELETE TABLE student DELETE COLUMN平均成绩B.ALTER TABLE student DELETE COLUMN平均成绩C.ALTER TABLE student DROP COLUMN平均成绩D.DELETE TABLE student DROP COLUMN平均成绩

考题 一个信息表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表的“平均成绩”字段的正确SQL命令是A.DELETE TABLE student DELETE COLUMN平均成绩B.ALTER TABLE student DELETE C0LUMN平均成绩C.ALTER TABLE student DROP COLUMN平均成绩D.DELETE TABLE student DROP COLUMN平均成绩

考题 一个学生信息表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;

考题 只修改列的数据类型指令是A.ALTER TABLE … … ALTER COLUMNB.ALTER TABLE … MODIFY COLUMN…C.ALTER TABLE … UPDATE …D.ALTER TABLE … UPDATE COLUMN…

考题 将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)

考题 在SQL Server中,修改表中列定义的正确的SQL语句是()。A、ALTER TABLE 表名 ALTER COLUMN 列名 数据类型B、ALTER TABLE 表名 ALTER 列名 数据类型C、ALTER TABLE MODIFY COLUMN 列名 数据类型D、ALTER TABLE 表名 ADD 列名 数据类型

考题 之前已经创建了一个Student的表,Age的数据类型为Int,现在改为Smallint应该()写。A、ALTERTABLEstudentMODIFYsagesmallintB、ALTERTABLEstudentALTERCOLUMNagesmallintC、ALTERTABLEstudentALTERMODIFYagesmallintD、ALTERTABLEstudentALTERCOLUMNsagesmallint

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

考题 单选题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);

考题 单选题删除student表的“平均成绩”字段的正确SQL命令是(  )。A DELETE TABLE student DELETE COLUMN平均成绩B ALTER TABLE student DELETE COLUMN平均成绩C ALTER TABLE student DROP COLUMN平均成绩D DELETE TABLE student DROP COLUMN平均成绩