单项选择题select au_id from authors where state=”ca” or state=”ks”.下面哪一条语句与这一条语句执行效果相同()

A. select au_id from authors where state IN(“ac”,:”sk”);
B. select au_id from authors where state between ac and sk
C. select au_id from authors where state not between ca and ks
D. select au_id from authors where state IN(“ca”,:”ks”);


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题SQL SERVER 2000中,可以用下面哪一条语句把authors表重命名为表student()

A.sp_renamedb authors student
B.sp_rename  authors  student
C.sp_renamedata authors student
D.sp_renameview authors student

2.单项选择题SQL SERVER中,可以用下面哪一条语句查看表格authors和其他对象的依赖关系()

A.sp_spaceused authors
B.sp_depends authors
C.sp_help authors
D.sp_renamedb authors student

3.单项选择题

ALTER TABLE exa  
ADD column_b VARCHAR(20) NULL    
这条语句的语义为()

A.创建表格exa,使其增加一列
B.创建表格exa,使其删除一列
C.修改表格exa 定义,使其增加一列
D.修改表格 exa 定义,使其删除一列

5.单项选择题

ALTER DATABASE Company 
MODIFY FILE (NAME=testdat3,SIZE=20MB)
上述语句实现的功能为()

A.将Company数据库中长度为20MB的testdat3数据文件设置为当前文件。
B.在Company数据库中创建一个20MB的名字为testdat3的数据文件。
C.将Company数据库中长度为20MB的testdat3数据文件删除
D.将Company数据库中testdat3数据文件的长度改为20MB

6.单项选择题下面哪一条是查看当前数据库上所有文件包括数据文件和日志文件的信息()

A. show databases
B. sp_helpfile
C. sp_helpdb
D. show helpfile

7.单项选择题

select sales.qty,sales.titile_id,stores.stor_name from sales join stores on 
sales.stor_id=stores.stor_id.
上述语句的语义为()

A.从sales和stores表中返回stor_id号相同的记录,记录包括sales表中stor_name字段以及stores表中的qty和titile_id字段。
B.向sales和stores表中写入字段,包括sales表中的qty和titile_id字段以及stores表中的stor_name字段
C.从sales和stores表中返回stor_id号相同的记录,记录包括sales表中的qty和titile_id字段以及stores表中的stor_name字段。
D.向sales和stores表中写入stor_id号相同的记录,记录包括sales表中的qty和titile_id字段以及stores表中的stor_name字段。

9.单项选择题下面哪一条语句是把员工数据表中所有项目部的员工的工资调整为3000()

A. UPDATE 员工数据表 SET 工资=3000 WHERE 所属部门=’项目部’
B. SELECT 员工数据表 SET 工资=3000 WHERE 所属部门=’项目部’
C. UPDATE 员工数据表 WHERE 所属部门=’项目部’=工资=3000
D. SELECT 员工数据表 WHERE 所属部门=’项目部’=工资=3000

10.单项选择题SELECT * FROM 员工数据表 INNER JOIN 项目数据表 ON 员工数据表.员工编号=项目负责表.负责人 。对上述语句,以下描述正确的是()

A. 这是一个左外向连接
B. 这是一个右外向连接
C. 这是一个交叉连接
D. 这是一个内连接