下列sql语句中哪条语句可为用户zhangsan分配数据库userdb表userinfo的查询和插入数据权限(A)。
A: grant select,insert on userdb.userinfo to’zhangsan’@‘localhost’
B:grant’zhangsan’@'localhost’to select,insert for userdb.userinfo
C:grant select,insert on userdb.userinfo for’zhangsan’@‘localhost’
D:grant’zhangsan’@'localhost’to userdb.userinfo on select,insert
权限授予格式;
grant [权限] on [table] to 'username'@'localhost';