首页 > 试题广场 >

下列sql语句中哪条语句可为用户zhangsan分配数据库u

[单选题]
下列sql语句中哪条语句可为用户zhangsan分配数据库userdb表userinfo的查询和插入数据权限()。
  • grant select,insert on userdb.userinfo to'zhangsan'@'localhost'
  • grant'zhangsan'@'localhost'to select,insert for userdb.userinfo
  • grant select,insert on userdb.userinfo for'zhangsan'@'localhost'
  • grant'zhangsan'@'localhost'to userdb.userinfo on select,insert
@'localhost'          在计算机网络中,localhost(意为“本地主机”,指“这台计算机”)
发表于 2015-11-04 21:07:16 回复(0)
 用户的权限控制:grant
库,表级的权限控制 : 将某个库中的某个表的控制权赋予某个用户
Grant all ON db_name.table_name TO user_name [ indentified by ‘password’ ];
发表于 2015-10-18 21:23:54 回复(0)
格式应该是:grant [权限] on [table] to 'username'@'localhost';
发表于 2016-03-21 10:48:29 回复(2)
授予权限的格式是grant on(表名)to(角色名),@localhost(本地主机)是指这台计算机的用户张三。
编辑于 2016-01-20 17:40:56 回复(0)
grant select,insert on userdb.userinfo to'zhangsan'@'localhost' 熟悉英语的应该知道这句话更通畅啊。
发表于 2016-03-16 09:55:07 回复(0)
grant something to somebody给予某人某物
在某个表上有什么权限是用on
纯属yy~~~~
发表于 2017-04-15 20:22:32 回复(1)
格式应该是 :grant「权限」 on「table」 to‘username’@‘localhost’;
发表于 2021-11-18 18:32:17 回复(0)
授予权限的格式是 grant  权限   to  角色    
发表于 2015-10-16 11:17:59 回复(0)
grant 权限 on table to。‘username’@"localhost"
编辑于 2024-02-23 01:20:46 回复(0)
格式应该是:grant [权限] on [table] to 'username'@'localhost';
发表于 2021-05-08 21:48:54 回复(0)

格式应该是:

grant [权限] on [table] to 'username'@'localhost';
发表于 2019-12-16 09:18:56 回复(0)
grant 【权限】on 【table】to 'username' @'localhost'
发表于 2018-08-24 15:01:45 回复(0)
grant select,update on usertable.userinfo to 'yt'@'localhost'
发表于 2017-12-12 18:53:44 回复(0)
GRANT 权限 ON 数据库名.表名 TO 用户
发表于 2017-10-10 19:28:58 回复(0)
grant 权限 on 数据库对象 to 用户
发表于 2017-03-15 09:21:30 回复(0)
格式应该是:grant [权限] on [table] to 角色名@'localhost';
发表于 2016-11-30 20:08:25 回复(1)
mysql 5.6中 grant 完整语法。http://dev.mysql.com/doc/refman/5.6/en/grant.html
编辑于 2016-11-25 00:00:44 回复(0)