APP下载
首页
>
财会金融
>
南京铁道职业技术学院
搜索
南京铁道职业技术学院
题目内容
(
单选题
)
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';

答案:A

南京铁道职业技术学院
16.在使用AND关键字时,只要记录满足任意一个条件就会被查询出来
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb00-cd2c-c0d6-3f0ad517a300.html
点击查看题目
26.在MySQL的整数类型中,不同类型所占用的字节数和取值范围都是不同的。
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb00-e90d-c0d6-3f0ad517a300.html
点击查看题目
68.在MySQL中,可用于创建一个新数据库的SQL语句为()
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-cc70-c0d6-3f0ad517a300.html
点击查看题目
27.订单表tb(order包含用户信息uid和产品信息pid等属性列,以下语句能够返回至少被订购过三次的pid是()
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-7694-c0d6-3f0ad517a300.html
点击查看题目
8.“LIMIT 4 OFFSET 3”和“LIMIT 4,3”返回的结果相同
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb00-b565-c0d6-3f0ad517a300.html
点击查看题目
102.视图定义如下: CREATE VIEW view_stu2(math,chin,sum) AS SELECT math,chinese,math+chinese FROM student; 下面选项中,能够正确使用视图的语句是()
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a57-0f21-c0d6-3f0ad517a300.html
点击查看题目
3.SQL语句中,判断字段sno是否为空值时,应该使用的表达式是()
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-43cb-c0d6-3f0ad517a300.html
点击查看题目
55.以下不能开启事件调度器的语句是()
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-afd4-c0d6-3f0ad517a300.html
点击查看题目
46假设某一个数据库表中有一个姓名字段,查找姓王并且姓名共有两个字的记录,应该用LIKE(B
https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-9dd5-c0d6-3f0ad517a300.html
点击查看题目
47.在MySQL中,删除存储过程使用的是DELETE语句。
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb01-3a59-c0d6-3f0ad517a300.html
点击查看题目
首页
>
财会金融
>
南京铁道职业技术学院
题目内容
(
单选题
)
手机预览
南京铁道职业技术学院

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';

答案:A

南京铁道职业技术学院
相关题目
16.在使用AND关键字时,只要记录满足任意一个条件就会被查询出来

A. ND关键字时,只要记录满足任意一个条件就会被查询出来

https://www.shititong.cn/cha-kan/shiti/0000b54b-eb00-cd2c-c0d6-3f0ad517a300.html
点击查看答案
26.在MySQL的整数类型中,不同类型所占用的字节数和取值范围都是不同的。
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb00-e90d-c0d6-3f0ad517a300.html
点击查看答案
68.在MySQL中,可用于创建一个新数据库的SQL语句为()

A. CREATE DATABASE

B. CREATE TABLE

C. CREATE DATABASES

D. CREATE DB

https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-cc70-c0d6-3f0ad517a300.html
点击查看答案
27.订单表tb(order包含用户信息uid和产品信息pid等属性列,以下语句能够返回至少被订购过三次的pid是()

A. select pid from tbⱣⱤorder where count(pid)>3;

B. select pid from tbⱣⱤorder where max(pid)>3;

C. select pid from tbⱣⱤorder group by pid having count(pid)>3;

D. select pid from tbⱣⱤorder group by pid having count(pid)>=3;

https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-7694-c0d6-3f0ad517a300.html
点击查看答案
8.“LIMIT 4 OFFSET 3”和“LIMIT 4,3”返回的结果相同
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb00-b565-c0d6-3f0ad517a300.html
点击查看答案
102.视图定义如下: CREATE VIEW view_stu2(math,chin,sum) AS SELECT math,chinese,math+chinese FROM student; 下面选项中,能够正确使用视图的语句是()

A. SELECT * FROM view_stu2;

B. CALL view_stu2(math,chin,sum);

C. SELECT * FROM view_stu2(math,chin,sum);

D. SELECT view_stu2;

https://www.shititong.cn/cha-kan/shiti/0000bb55-2a57-0f21-c0d6-3f0ad517a300.html
点击查看答案
3.SQL语句中,判断字段sno是否为空值时,应该使用的表达式是()

A. sno IS NULL

B. sno=NULL

C. sno NULL OR NOT

D. 以上方式皆可

https://www.shititong.cn/cha-kan/shiti/0000bb55-2a56-43cb-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
点击查看答案
47.在MySQL中,删除存储过程使用的是DELETE语句。
https://www.shititong.cn/cha-kan/shiti/0000b54b-eb01-3a59-c0d6-3f0ad517a300.html
点击查看答案
试题通小程序
试题通app下载