basic.md 419 字节
Newer Older
M
Mars Liu 已提交
1 2 3 4 5 6 7 8 9 10 11 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
# 基本语法

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

## 答案

```postgresql
from test select abc;
```

## 选项


### A

```postgresql
select 3.14;
```

### B

```postgresql
select * from employee;
```

### C

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

### D

```postgresql
select id, name, dept, salary from employee where salary > 10000::money;
```

### E

```postgresql
select now();
```