题目内容

Sql语句:select * from students where SNO like‘010[^0]%[A,B,C]%’,可能会查询出的SNO是()。

A. 01053090A
B. Hm3?
C. 01003090A01
D. 01053090D09
E. 0100A01

查看答案
更多问题

关于Truncate table, 以下()描述是错误的。

A. Truncate table可跟Where从句,根据条件进行删除。
B. Truncate table可以删除表中所有数据。
C. 触发器对Truncate table依然有效。
D. delete比Truncate table速度快。

现有订单表orders,包含用户信息userid, 产品信息 productid, 以下()语句能够返回至少被订购过两回的productid?

A. select productid from orders where count(productid)>1
B. select productid from orders wheremax(productid)>1
C. select productid from orders where having count(productid)>1group by product id_
D. select productid from orders group by productid having count(productid)>1

成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。

A. select avg(score) from grade order by scoore
B. select top 1 score from grade order by score asc
C. Select min(score) from grade
D. select top 1 score from grade order by score desc

现有书目表book,包含字段:price (float); 现在查询一条书价最高的书目的详细信息,以下语句正确的是()。

A. select top 1 * from book order by price asc
B. select top 1 * from book order by price desc
C. select top 1 * from book where price> (select rice frombook)
D. select top 1 * from book where price= max(price)

答案查题题库