1
0
Fork 0
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:
Ryan Howe 2018-03-16 11:20:10 -04:00
parent 6b841cf32e
commit 4c532d86c3

View file

@ -165,10 +165,16 @@ Although not exhaustive always include spaces:
comma or semicolon.
```sql
SELECT a.title, a.release_date, a.recording_date
FROM albums AS a
WHERE a.title = 'Charcoal Lane'
OR a.title = 'The New Danger';
SELECT
title,
release_date,
recording_date
FROM
ALBUMS
WHERE
title = 'Charcoal Lane'
OR
title = 'The New Danger';
```
#### Line spacing
@ -310,9 +316,12 @@ WHERE
```
## 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
readable code. To facilitate this ensure the column definitions are ordered and
grouped where it makes sense to do so.