From 4fe4866c50a9b98fa848e326fd123d2c57c4cc75 Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Tue, 10 Sep 2019 14:53:34 +1000 Subject: [PATCH] closes #53: adds suggested column types --- _includes/sqlstyle.guide.md | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/_includes/sqlstyle.guide.md b/_includes/sqlstyle.guide.md index 48cf8bd..02547f8 100644 --- a/_includes/sqlstyle.guide.md +++ b/_includes/sqlstyle.guide.md @@ -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