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:
parent
56494ad711
commit
4fe4866c50
1 changed files with 43 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue