select.md 621 字节
Newer Older
M
Mars Liu 已提交
1 2 3 4
# 基本语法

下列 SQL 语句,哪一项不合法?

M
Mars Liu 已提交
5 6
<hr/>

M
Mars Liu 已提交
7
点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill)
F
feilong 已提交
8

M
Mars Liu 已提交
9 10
* `show databases` 列出所有数据库
* `show tables` 列出所有表
M
Mars Liu 已提交
11

M
Mars Liu 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
## 答案

```mysql
from test select abc;
```

## 选项


### A

```mysql
select 3.14;
```

### B

```mysql
select * from employee;
```

### C

```mysql
select * from employee where dept = 'hr';
```

### D

```mysql
select id, name, dept, salary from employee where salary > 10000;
```

### E

```mysql
select now();
```