1
0
Fork 0
mirror of https://github.com/treffynnon/sqlstyle.guide.git synced 2025-03-09 12:49:51 -05:00

Merge branch 'tuxayo-patch-5' into gh-pages

This commit is contained in:
Simon Holywell 2019-09-10 14:44:32 +10:00 committed by Simon Hoywell
commit 56494ad711
7 changed files with 14 additions and 14 deletions

View file

@ -220,7 +220,7 @@ aber hier sind sie hilfreich.
WHERE b.species_name = 'Banksia'
OR b.species_name = 'Sheoak'
OR b.species_name = 'Wattle'
GROUP BY b.species_name, b.observation_date)
GROUP BY b.species_name, b.observation_date);
```
Bemerken Sie, dass `SELECT`, `FROM`, usw. alle rechtsbündig, während die
@ -340,7 +340,7 @@ SELECT CASE postcode
FROM office_locations
WHERE country = 'United Kingdom'
AND opening_time BETWEEN 8 AND 9
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1')
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1');
```
## `CREATE`-Syntax

View file

@ -166,7 +166,7 @@ SELECT model_num
WHERE b.species_name = 'Banksia'
OR b.species_name = 'Sheoak'
OR b.species_name = 'Wattle'
GROUP BY b.species_name, b.observation_date)
GROUP BY b.species_name, b.observation_date);
```
`SELECT`、`FROM`、その他キーワードはすべて右揃えされ、列名や実装の詳細は左揃えされている点に注意する。
@ -269,7 +269,7 @@ SELECT CASE postcode
FROM office_locations
WHERE country = 'United Kingdom'
AND opening_time BETWEEN 8 AND 9
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1')
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1');
```
## Create文

View file

@ -192,7 +192,7 @@ implementation detail. Rivers are [bad in typography][rivers], but helpful here.
WHERE b.species_name = 'Banksia'
OR b.species_name = 'Sheoak'
OR b.species_name = 'Wattle'
GROUP BY b.species_name, b.observation_date)
GROUP BY b.species_name, b.observation_date);
```
Notice that `SELECT`, `FROM`, etc. are all right aligned while the actual column
@ -309,7 +309,7 @@ SELECT CASE postcode
FROM office_locations
WHERE country = 'United Kingdom'
AND opening_time BETWEEN 8 AND 9
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1')
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1');
```
## Create syntax

View file

@ -200,7 +200,7 @@ Rios são [ruins na tipografia][rivers], mas úteis aqui.
WHERE b.species_name = 'Banksia'
OR b.species_name = 'Sheoak'
OR b.species_name = 'Wattle'
GROUP BY b.species_name, b.observation_date)
GROUP BY b.species_name, b.observation_date);
```
Note que o `SELECT`, `FROM`, etc. estão todos alinhados à direita, enquanto
@ -318,7 +318,7 @@ SELECT CASE postcode
FROM office_locations
WHERE country = 'United Kingdom'
AND opening_time BETWEEN 8 AND 9
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1')
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1');
```
## Sintaxe Create

View file

@ -210,7 +210,7 @@ SELECT model_num
WHERE b.species_name = 'Banksia'
OR b.species_name = 'Sheoak'
OR b.species_name = 'Wattle'
GROUP BY b.species_name, b.observation_date)
GROUP BY b.species_name, b.observation_date);
```
Обратите внимание, что ключевые слова `SELECT`, `FROM` и т.д. выровнены по
@ -324,7 +324,7 @@ SELECT CASE postcode
FROM office_locations
WHERE country = 'United Kingdom'
AND opening_time BETWEEN 8 AND 9
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1')
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1');
```
## Синтаксис `CREATE`

View file

@ -155,7 +155,7 @@ SELECT model_num
WHERE b.species_name = 'Banksia'
OR b.species_name = 'Sheoak'
OR b.species_name = 'Wattle'
GROUP BY b.species_name, b.observation_date)
GROUP BY b.species_name, b.observation_date);
```
注意`WHERE`和`FROM`等關鍵字,都右對齊,而真實的列名都左對齊。
@ -261,7 +261,7 @@ SELECT CASE postcode
FROM office_locations
WHERE country = 'United Kingdom'
AND opening_time BETWEEN 8 AND 9
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1')
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1');
```
## Create syntax 創建語句

View file

@ -155,7 +155,7 @@ SELECT model_num
WHERE b.species_name = 'Banksia'
OR b.species_name = 'Sheoak'
OR b.species_name = 'Wattle'
GROUP BY b.species_name, b.observation_date)
GROUP BY b.species_name, b.observation_date);
```
注意`WHERE`和`FROM`等关键字,都右对齐,而真实的列名都左对齐。
@ -261,7 +261,7 @@ SELECT CASE postcode
FROM office_locations
WHERE country = 'United Kingdom'
AND opening_time BETWEEN 8 AND 9
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1')
AND postcode IN ('EH1', 'BN1', 'NN1', 'KW1');
```
## Create syntax 创建语句