语句“USE MyDB GO SELECT * FROM Student GO”包括( )个批处理
A: 1
B: 2
C: 3
D: 无
A: 1
B: 2
C: 3
D: 无
举一反三
- 设有如下程序段,若要给f1文件追加新记录,但又不改变当前表的打开状态,应该使用命令序列______。 SELECT 1 USE f1 SELECT 2 USE f2 SELECT 3 USE f3 A: USE f1 APPEND B: SELECT 1 APPEND C: GO f APPEND D: GO 1 APPEND
- 下面用于查询student表中id值在1,2,3范围内的记录的SQL语句是( )。 A: SELECT * FROM student WHERE id=1,2,3; B: SELECT * FROM student WHERE (id=1,id=2,id=3); C: SELECT * FROM student WHERE id in (1,2,3); D: SELECT * FROM student WHERE id in 1,2,3;
- 智慧职教: 为Mydb数据库中的Sale表添加默认约束,要求SaleNum(销售数量)的值默认为1。 完成SQL语句。 use Mydb go ALTER TABLE Mydb ADD CONSTRAINT S_DK 1 SaleNum
- 下面选项中,查询student表中id值不在2和5之间的SQL语句是( )。 A: SELECT * FROM `student` WHERE `id`!=2,3,4,5 B: SELECT * FROM `student` WHERE `id` NOT BETWEEN 5 AND 2 C: SELECT * FROM `student` WHERE `id` NOT BETWEEN 2 AND 5 D: SELECT * FROM `student` WHERE `id` NOT IN 2,3,4,5
- 下面选项中,查询student表中id值不在2和5之间的学生的SQL语句是 A: SELECT * FROM student where id!=2,3,4,5; B: SELECT * FROM student where id not between 5 and 2; C: SELECT * FROM student where id not between 2 and 5; D: SELECT * FROM student where id not in 2,3,4,5;