Skip to content

Commit

Permalink
closes treffynnon#53: adds suggested column types
Browse files Browse the repository at this point in the history
  • Loading branch information
treffynnon authored and Simon Hoywell committed Sep 10, 2019
1 parent 56494ad commit 4fe4866
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions _includes/sqlstyle.guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,49 @@ ZEROFILL
ZONE
```

### Column data types

These are some suggested column data types to use for maximum compatibility between database engines.

#### Character types:

* CHAR
* CLOB
* VARCHAR

#### Numeric types

* Exact numeric types
* BIGINT
* DECIMAL
* DECFLOAT
* INTEGER
* NUMERIC
* SMALLINT
* Approximate numeric types
* DOUBLE PRECISION
* FLOAT
* REAL

#### Datetime types

* DATE
* TIME
* TIMESTAMP

#### Binary types:

* BINARY
* BLOB
* VARBINARY

#### Additional types

* Boolean
* INTERVAL
* XML


[simon]: https://www.simonholywell.com/?utm_source=sqlstyle.guide&utm_medium=link&utm_campaign=md-document
"SimonHolywell.com"
[issue]: https://github.com/treffynnon/sqlstyle.guide/issues
Expand Down

0 comments on commit 4fe4866

Please sign in to comment.