首页 > 其他> 其他
题目内容 (请给出正确答案)
[主观题]

根据SQL标准,修改表的数据结构,下面哪种语句适用?()A UPDATEB ALTERC CHANGED SHIFT

根据SQL标准,修改表的数据结构,下面哪种语句适用?()

A UPDATE

B ALTER

C CHANGE

D SHIFT

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“根据SQL标准,修改表的数据结构,下面哪种语句适用?()A …”相关的问题
第1题
根据SQL标准,要修改表student中所有学生的年龄age,使之在原值基础上减一,下面哪个语句适用?()A

根据SQL标准,要修改表student中所有学生的年龄age,使之在原值基础上减一,下面哪个语句适用?()

A update student set age = 1

B update student set age = age - 1

C update age = age -1 from student

D update from student where age = age -1

点击查看答案
第2题
根据SQL标准,创建一个表,应该使用下面哪个语句?()A CREATE TABLEB CREATE INDEXC CREATE VIEW

根据SQL标准,创建一个表,应该使用下面哪个语句?()

A CREATE TABLE

B CREATE INDEX

C CREATE VIEW

D CREATE DATABASE

点击查看答案
第3题
根据SQL标准,删除一个表,应该使用下面哪个语句?()A DELETE TABLEB DROP TABLEC DELETE VIEWD

根据SQL标准,删除一个表,应该使用下面哪个语句?()

A DELETE TABLE

B DROP TABLE

C DELETE VIEW

D DROP DATABASE

点击查看答案
第4题
根据SQL标准,查询表student(sno,sname,sex,dept)中所有学生的选修课程数,其中选修记录在表SC(s

根据SQL标准,查询表student(sno,sname,sex,dept)中所有学生的选修课程数,其中选修记录在表SC(sno,cno,grade)中,两表中sno为关联字段。下面哪条语句合适?()

A select sno,count(cno) from SC

B select sno,count(cno) from student

C select a.sno,count(cno) from student a left outer join SC

D select a.sno,count(cno) from SC left outer join student a

点击查看答案
第5题
根据SQL标准,要查询表student中平均年龄age小于21的所在系dept及其平均年龄值,下面哪条语句适
用?()

A select dept,avg(age) from student where avg(age)<21

B select dept,avg(age) from student group by dept having avg(age)<21

C select dept,avg(age) from student having avg(age)<21

D select dept,avg(age) from student group by dept where avg(age)<21

点击查看答案
第6题
根据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)

点击查看答案
第7题
根据SQL标准,增加一条记录到表student,学号sno是11301,姓名sname是“snoopy”,年龄age是20。其中
student表中包括学号、姓名、年龄、籍贯、系别等属性,并且属性除sno外皆可取空值。下面哪条是参考的?()

A insert into student values(sno=11301, sname=’snoopy’, age =20)

B insert into student(sno,sname,age) values(11301,’snoopy’,20)

C insert into student set sno=11301, sname=’snoopy’, age = 20

D insert into student values (11301, ’snoopy’, 20)

点击查看答案
第8题
下列哪写是数据结构的基本操作()

A.插入

B.删除

C.查找

D.修改

点击查看答案
第9题
根据SQL标准,删除索引应该选用下面哪个语句?()A DELETE INDEXB DROP INDEXC DELETE VIEWD DRO

根据SQL标准,删除索引应该选用下面哪个语句?()

A DELETE INDEX

B DROP INDEX

C DELETE VIEW

D DROP VIEW

点击查看答案
第10题
根据SQL标准,创建一个视图,应该使用下面哪个语句?()A CREATE TABLEB CREATE INDEXC CREATE VIE

根据SQL标准,创建一个视图,应该使用下面哪个语句?()

A CREATE TABLE

B CREATE INDEX

C CREATE VIEW

D CREATE DATABASE

点击查看答案
第11题
根据SQL标准,下面哪条语句与select min(age) from student等效?()A select age from student

根据SQL标准,下面哪条语句与select min(age) from student等效?()

A select age from student where age >= min(age)

B select distinct age from student where age >= all min(age)

C select distinct a.age from student a where a.age<= any (select distinctb.age from student b)

D select distinct a.age from student a where a.age<= all (select distinct b.age from student b)

点击查看答案
退出 登录/注册
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改