考察有以下材料的 Product表:product ID,product name,price,quantity on hand为创建具有auto-increment特征使能的产品ID,你应使用以下关键字中哪个?其第一个产品的产品ID从1开始,以后产品ID自动加一。( )
A. SEED
B. INCREMENT
C. IDENTITY
D. AUTOINCREMENT
查看答案
考察表:ProductProduct_idProduct_namePriceQuantity_on_hand哪个语句保证产品的数量总是正的?( )
Alter table Product Add constraint chkQoh check (Quantity_on_hand <0)
B. Alter table Product Add constraint chkQoh check (Quantity_on_hand >0)
C. Alter table Product Add constraint chkQoh check (Quantity_on_hand <=0)
D. Alter table Product Add constraint chkQoh check (Quantity_on_hand >=0)
以下哪条语句是错误的?()
A. SELECTempno,enamename,salsalaryFROMemp;
B. SELECTempno,enamename,salASsalaryFROMemp;
C. SELECTename,sal*12AS“AnnualSalary”FROMemp;
D. SELECTename,sal*12AnnualSalaryFROMemp;
某用户希望显示补助非空的所有雇员信息,应该使用哪条语句()
A. SELECTename,sal,commFROMempWHEREcomm.<>null;
B. SELECTename,sal,commFROMempWHEREcomm.ISNOTnull;
C. SELECTename,sal,commFROMempWHEREcomm.<>0;
D. SELECTename,sal,commFROMempWHEREcomm.ISNULL;
以下哪条语句是错误的?()
A. SELECTename,salsalaryFROMempORDERBYsal;
B. SELECTename,salsalaryFROMempORDERBYsalary;
C. SELECTename,salsalaryFROMempORDERBY3;
D. SELECTenameFROMempORDERBYsalDESC;