单项选择题下面哪一条语句实现了下列功能:在authors数据库中查找所有姓名以d 打头的作家()

A. select * from authors where au_name=”d”
B. select “d” from authors
C. select * from authors where au_name like “d%”
D. select au_name like “d%” from authors


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题select au_id from authors where price<$15 or price >$ 20.下面哪一条语句与这一条语句执行效果相同()

A. select au_id from authors where price IN($15,:$20);
B. select au_id from authors where price between $15 and $20
C. select au_id from authors where price not between $15 and $20
D. select au_id from authors where price not IN($15,$20);

2.单项选择题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”);

3.单项选择题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

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

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

5.单项选择题

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

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

7.单项选择题

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

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

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

9.单项选择题

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字段。