82.使用CREATE USER语句创建一个新用户,用户名为user2、密码为123下面选项中,能实现上述功能的语句是()
A. CREATE USER 'user2'@'localhost' IDENTIFIED BY '123';
B. CREATE USER user2@localhost IDENTIFIED BY 123;
C. CREATE USER 'user2'@'localhost' IDENTIFIED TO '123';
D. CREATE USER user2@localhost IDENTIFIED TO '123';
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-e8f4-c0d6-3f0ad517a300.html
点击查看答案
49设职工表tb(employee,包含字段eno (职工号)、ename(姓名)、age(年龄)、salary(工资)和dept (所在部门),要查询工资在4000~5000之间(包含4000、5000)的职工号和姓名,正确的WHERE表达式是()
A. salary BETWEEN 4000 AND 5000
B. salary=5000
C. 4000=<salary<=5000
D. salary IN(4000,5000)
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-a37d-c0d6-3f0ad517a300.html
点击查看答案
25.AND关键字可以连接两个或者多个查询条件,只有满足所有条件的记录才会被返回。
A. ND关键字可以连接两个或者多个查询条件,只有满足所有条件的记录才会被返回。
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb00-e5b8-c0d6-3f0ad517a300.html
点击查看答案
24.删除视图时,也会删除所对应基本表中的数据。
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb00-e34b-c0d6-3f0ad517a300.html
点击查看答案
21.在存储过程中,使用游标的一般流程是()
A. 打开->读取->关闭
B. 声明->填充内容->读取->关闭
C. 声明->打开->读取->关闭
D. 声明->填充内容->打开->读取->关闭
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-6a3d-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
点击查看答案
55.以下不能开启事件调度器的语句是()
A. SELECT @@EVENTⱣⱤSCHEDULER;
B. SET GLOBAL EVENTⱣⱤSCHEDULER=1;
C. SET GLOBAL EVENTⱣⱤSCHEDULER=TRUE;
D. SET GLOBAL EVENTⱣⱤSCHEDULER=ON;
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-afd4-c0d6-3f0ad517a300.html
点击查看答案
46假设某一个数据库表中有一个姓名字段,查找姓王并且姓名共有两个字的记录,应该用LIKE(B
A. "王%"
B. "王_"
C. "王_ _"
D. "%王%"
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-9dd5-c0d6-3f0ad517a300.html
点击查看答案
80.在使用SELECT语句查询数据时,将多个条件组合在一起,其中只要有一个条件符合要求,这条记录就会被查出,此时使用的连接关键字是()
A. AND
B. OR
C. NOT
D. 以上都不对
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-e501-c0d6-3f0ad517a300.html
点击查看答案
11.修改用户登录口令的命令是()
A. SET PASSWORD
B. UPDATE PASSWORD
C. CHANGE PASSWORD
D. MODIFY PASSWORD
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-5539-c0d6-3f0ad517a300.html
点击查看答案