mirror of
https://github.com/treffynnon/sqlstyle.guide.git
synced 2025-03-09 12:49:51 -05:00
Minor updates
Minor updates
This commit is contained in:
parent
6b841cf32e
commit
4c532d86c3
1 changed files with 24 additions and 15 deletions
23
README.md
23
README.md
|
@ -165,10 +165,16 @@ Although not exhaustive always include spaces:
|
||||||
comma or semicolon.
|
comma or semicolon.
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT a.title, a.release_date, a.recording_date
|
SELECT
|
||||||
FROM albums AS a
|
title,
|
||||||
WHERE a.title = 'Charcoal Lane'
|
release_date,
|
||||||
OR a.title = 'The New Danger';
|
recording_date
|
||||||
|
FROM
|
||||||
|
ALBUMS
|
||||||
|
WHERE
|
||||||
|
title = 'Charcoal Lane'
|
||||||
|
OR
|
||||||
|
title = 'The New Danger';
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Line spacing
|
#### Line spacing
|
||||||
|
@ -310,9 +316,12 @@ WHERE
|
||||||
```
|
```
|
||||||
|
|
||||||
## Create syntax
|
## Create syntax
|
||||||
```sql
|
|
||||||
/* I do not think that this is a nessisary part of a style guide since we generally should not be creating tables in production */
|
<hr/>
|
||||||
```
|
<hr/>
|
||||||
|
I do not think that this is a nessisary part of a style guide since we generally should not be creating tables in production
|
||||||
|
<hr/>
|
||||||
|
<hr/>
|
||||||
When declaring schema information it is also important to maintain human
|
When declaring schema information it is also important to maintain human
|
||||||
readable code. To facilitate this ensure the column definitions are ordered and
|
readable code. To facilitate this ensure the column definitions are ordered and
|
||||||
grouped where it makes sense to do so.
|
grouped where it makes sense to do so.
|
||||||
|
|
Loading…
Reference in a new issue