Skip to content

Commit

Permalink
[Debug] specification typo (pingcap#10596)
Browse files Browse the repository at this point in the history
  • Loading branch information
Icemap authored Jul 20, 2022
1 parent 33badfb commit 8b2b0b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions develop/dev-guide-sql-development-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ aliases: ['/zh/tidb/dev/sql-development-specification']
```sql
SELECT gmt_create
FROM ...
WHERE DATE_FORMAT(gmt_create'%Y%m%d %H:%i:%s') = '20090101 00:00:0'
WHERE DATE_FORMAT(gmt_create, '%Y%m%d %H:%i:%s') = '20090101 00:00:00'
```

推荐的写法:
Expand All @@ -39,8 +39,8 @@ aliases: ['/zh/tidb/dev/sql-development-specification']

```sql
SELECT DATE_FORMAT(gmt_create,'%Y%m%d %H:%i:%s')
FROM .. .
WHERE gmt_create = str_to_date('20090101 00:00:00''%Y%m%d %H:%i:s')
FROM ...
WHERE gmt_create = str_to_date('20090101 00:00:00', '%Y%m%d %H:%i:%s')
```

## 其他规范
Expand Down

0 comments on commit 8b2b0b5

Please sign in to comment.