多項選擇題數(shù)據(jù)庫中有一張表名為Emp,包含有如下列:EmpNO(雇員編號,Varchar(20),Pk),Job(職位Varchar(10)),HirDate(雇傭日期,Date),Sal(月薪,F(xiàn)loat),Comm(獎金,F(xiàn)loat,可為空)。查詢出雇員編號為791,792,793的雇員信息是()

A.Select * From Emp Where EmpNO  In('791','792','793') 
B.Select * From Emp Where EmpNO ='791' Or EmpNO='792' OR EmpNO='793' 
C.Select * From Emp Where EmpNO >='791' And EmpNO<='793' 
D.Select * From Emp Where EmpNO >'791' And EmpNO<'793'


您可能感興趣的試卷

你可能感興趣的試題

1.多項選擇題數(shù)據(jù)庫中有一張表名為Emp,包含有如下列:EmpNO(雇員編號,Varchar(20),Pk),Job(職位Varchar(10)),HirDate(雇傭日期,Date),Sal(月薪,F(xiàn)loat),Comm(獎金,F(xiàn)loat,可為空)。查詢出雇員編號不為791,792,793的雇員信息應(yīng)該是用哪些數(shù)據(jù)查詢?()

A.Select * From Emp Where EmpNO Not In('791','792','793') 
B.Select * From Emp Where EmpNO !='791' AND EmpNO!='792' And EmpNO='793' 
C.Select * From Emp Where EmpNO <>'791' AND EmpNO<>792' And EmpNO=<>793' 
D.Select * From Emp Where EmpNO =!'791' AND EmpNO =!'792' And EmpNO =!'793'

3.多項選擇題若要刪除book表中所有數(shù)據(jù),以下語句錯誤的是()

A.truncate table book 
B.delete * from book
C.drop table book 
D.delete from book

4.多項選擇題學(xué)生成績表grade中有字段score(float),現(xiàn)在要把所有在55分至60之間的分數(shù)提高5分,以下sql語句正確的是()

A.Update grade set score=score+5
B.Update grade set score=score+5 where score>=55 or score <=60
C.Update grade set score=score+5 where score between 55 and 60
D.Update grade set score=score+5 where score >=55 and score <=60

5.多項選擇題現(xiàn)有書目表book,包含字段:price(float);現(xiàn)在查詢一條書價最高的書目的詳細信息,以下語句正確的是()

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 max (price)from book)
D.select top 1 * from book where price= max(price)