# 授权
管理员要给用户 joe 授权,允许他查询 emplyee 表,应用哪一条语句?
点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill){target="_blank"}。
* `show databases;` 列出所有数据库
* `show tables;` 列出所有表
## 答案
```sql
grant select on table employee to joe;
```
## 选项
### 权限名错误
```sql
grant query on table employee to joe;
```
### 权限名错误
```sql
grant read on table employee to joe;
```
### 操作关键词错误
```sql
grant select on table employee of joe;
```
### 操作错误
```sql
grant select on table employee.* of joe;
```
### 权限过高
```sql
grant all on table employee to joe;
```