A: set user
B: create user
C: update user
D: drop user
举一反三
- 在MySQL数据库中,以下关于修改用户名称的语句正确是()。 A: CREATE USER B: RENAME USER C: DROP USER D: UPDATE USER
- MySQL中,使用()语句来为指定的数据库添加用户。 A: CREATE USER B: GRANT C: INSERT D: UPDATE
- 下列选项中可以重置用户密码的是 ( ) 。 A: ALTER USER B: RENAME USER C: CREATE USER D: DROP USER
- 下面选项中,能够更新user表中数据的SQL语句是() A: update into user set id = 'u001'; B: update user set id = 'u001' and username='jack'; C: update user set username='jack' where id = 1; D: update into user set id = 'u001', username='jack';
- 在 MySQL 中,删除用户的命令是( ) A: DROP USER B: REVOKE USER C: DELETE USER D: REMOVE USER
内容
- 0
下面使用DROP USER语句删除用户user1的语句中,正确的是 A: DROP USER user1@localhost; B: DROP USER 'user1'.’ocalhost'; C: DROP USER user1.localhost; D: DROP USER 'user1'@'localhost';
- 1
添加用户CREAT USER的一般格式为(?) A: Create [@主机名] [Identified By ]…[, …] B: Create User Identified By 用户名 C: Create User 密码 用户名 D: Create user [@主机名][identified by ]……[,……]
- 2
下面选项中,用于将表user中字段age值更新为55的SQL语句是 A: ALTER TABLE user set age=55; B: UPDATE user set age=55 where age=55; C: UPDATE user set age=55; D: UPDATE user set age=55 where age<=55;
- 3
删除用户账户命令是( ) A: DROP USER B: DROP TABLE USER C: DELETE USER D: DELETE FROM USER
- 4
使用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';