单项选择题把列的属性规定为()列时,在插入新的一行时不必为其赋值,服务器自动为其设置一个唯一的行序列号

A.NULL
B.NO NULL
C.IDENTITY
D.UNIQUE


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题select count(*) from authors where city=’beijin’.对于上一条语句,下面表述是正确的()

A.从authors表中查询出city是beijin,且名为count的记录数目。
B.从authors表中查询出city 是beijin的第一条记录
C.从authors表中查询出city 是beijin 的所有记录
D.从authors表中查询出city是beijin的记录总数目。

2.单项选择题TRUNCATE TABLE 和 DELETE TABLE的区别是()

A.TRUNCATE TABLE 删除数据后可以恢复,而DELETE 不可以恢复
B.TRUNCATE TABLE 删除数据后不可以恢复,而DELETE 可以恢复
C.两者删除数据过后都可以恢复
D.两者删除数据后都不可以恢复

3.单项选择题从authors 数据库中查询出所有au_id满足前2个字符为”72”,第四个字符为”-“的作家的姓名,下面哪一条语句满足条件()

A.select * from authors where au_id =”72_-%”
B.select au_id=72_-% from authors
C.select * from authors where au_id like “72*-%”
D.select * from authors where au_id like “72_-%” _代表任意一个字符

4.单项选择题下面哪一条语句实现了下列功能:在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

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

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

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

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

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

9.单项选择题

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

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