46假设某一个数据库表中有一个姓名字段,查找姓王并且姓名共有两个字的记录,应该用LIKE(B
A. "王%"
B. "王_"
C. "王_ _"
D. "%王%"
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-9dd5-c0d6-3f0ad517a300.html
点击查看答案
97.创建存储函数fn(while()的代码如下:
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a57-0569-c0d6-3f0ad517a300.html
点击查看答案
62.假设student表中共有9条记录,而存在name与gender值完全相同的记录有3条,那么使用SELECT DISTINCT name,gender FROM student;语句查询出的记录条数是()
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-bf58-c0d6-3f0ad517a300.html
点击查看答案
40MySQL服务器的缺省监听端口是()
A. 3306
B. 1521
C. 80
D. 1433
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-9171-c0d6-3f0ad517a300.html
点击查看答案
6.设WHERE子句中的条件表达式是:num BETWEEN 20 AND 30其含义是:num的值是20到30范围内的所有整数,且()
A. 包含20和30
B. 不包含20和30
C. 包含20,不包含30
D. 不包含20,包含30
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-49fd-c0d6-3f0ad517a300.html
点击查看答案
88.下列有关MySQL完整性约束的叙述中,正确的是()
A. 实体完整性可由主键约束或候选键约東来实现
B. 对完整性约束只能进行添加操作
C. 使用ALTER TABLE语句删除完整性约束的同时,会自动删除表本身
D. 使用DROP TABLE语句删除一个表的同时,表中的完整性约束不会自动删除
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-f486-c0d6-3f0ad517a300.html
点击查看答案
21.在存储过程中,使用游标的一般流程是()
A. 打开->读取->关闭
B. 声明->填充内容->读取->关闭
C. 声明->打开->读取->关闭
D. 声明->填充内容->打开->读取->关闭
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-6a3d-c0d6-3f0ad517a300.html
点击查看答案
57.在使用CREATE USER创建用户时设置口令的命令是()
A. IDENTIFIED BY
B. IDENTIFIED WITH
C. PASSWORD
D. PASSWORD BY
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-b3d9-c0d6-3f0ad517a300.html
点击查看答案
23.使用MySQL时,可以在MySQL客户端中执行SQL语句,但下面无法用于执行SQL语句的客户端工具是()
A. mysql命令行
B. phpMyAdmin
C. mysqlld
D. Navicat工具
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-6e59-c0d6-3f0ad517a300.html
点击查看答案
91.下面选项中,与“SELECT * FROM student where id not between 2 and 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 in (2,3,4,5);
D. SELECT * FROM student where id not in 2,3,4,5;
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-fa4d-c0d6-3f0ad517a300.html
点击查看答案