May 2020
Beginner
564 pages
14h 9m
English
PostgreSQL uses INTEGER in place of INT. It works the same as INT in MySQL, except there is no unsigned version in PostgreSQL.
PostgreSQL uses DOUBLE PRECISION instead of the DOUBLE data type.
PostgreSQL uses REAL instead of the FLOAT data type.
Additionally, PostgreSQL has a data type called BOOLEAN. It can have a value of true, false, or null. A true value includes true, yes, on, or 1. A false value includes false, on, off, or 0. In MySQL, there isn't a BOOLEAN type. Use TINYINT(1) instead. MySQL Workbench will provide you with a type listed as Boolean, but it immediately converts it to TINYINTX. You can also store Boolean values in a BIT field.
Read now
Unlock full access