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

closes #53: adds suggested column types

This commit is contained in:
Simon Holywell 2019-09-10 14:53:34 +10:00 committed by Simon Hoywell
parent 56494ad711
commit 4fe4866c50

View file

@ -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