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

A.elect * From Emp Where HirDate>='1981-1-1' And HirDate <='1981-12-31'  
B.Select * From Emp Where Between In '1981-1-1' And <'1981-12-31'
C.Select * From Emp Where Between In '1981-12-31' And <'1981-1-1'  
D.Select * From Emp Where HirDate>='1981-1-1' NOT HirDate <='1981-12-31'


您可能感興趣的試卷

你可能感興趣的試題

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的雇員信息是()

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'

2.多項選擇題數(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'

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

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

5.多項選擇題學(xué)生成績表grade中有字段score(float),現(xiàn)在要把所有在55分至60之間的分?jǐn)?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