data types mysql vs postgresql

Solutions on MaxInterview for data types mysql vs postgresql by the best coders in the world

showing results for - "data types mysql vs postgresql"
Leanne
03 Jun 2016
1MySQL                   PostgreSQL          SQLite
2
3TINYINT                 SMALLINT            INTEGER
4SMALLINT                SMALLINT
5MEDIUMINT               INTEGER
6BIGINT                  BIGINT
7BIT                     BIT                 INTEGER
8_______________________________________________________
9
10TINYINT UNSIGNED        SMALLINT            INTEGER
11SMALLINT UNSIGNED       INTEGER
12MEDIUMINT UNSIGNED      INTEGER
13INT UNSIGNED            BIGINT
14BIGINT UNSIGNED         NUMERIC(20)
15_______________________________________________________
16
17DOUBLE                  DOUBLE PRECISION    REAL
18FLOAT                   REAL                REAL
19DECIMAL                 DECIMAL             REAL
20NUMERIC                 NUMERIC             REAL
21_______________________________________________________
22
23BOOLEAN                 BOOLEAN             INTEGER
24_______________________________________________________
25
26DATE                    DATE                TEXT
27TIME                    TIME
28DATETIME                TIMESTAMP
29_______________________________________________________
30
31TIMESTAMP DEFAULT       TIMESTAMP DEFAULT   TEXT
32NOW()                   NOW()   
33_______________________________________________________
34
35LONGTEXT                TEXT                TEXT
36MEDIUMTEXT              TEXT                TEXT
37BLOB                    BYTEA               BLOB
38VARCHAR                 VARCHAR             TEXT
39CHAR                    CHAR                TEXT
40_______________________________________________________
41
42columnname INT          columnname SERIAL   INTEGER PRIMARY 
43AUTO_INCREMENT                              KEY AUTOINCREMENT