28.1.1 Database Tables (cont.)

SQL Data Type C++ Data Type
INTEGER or INT int
REAL float
DOUBLE double
DECIMAL(n, x) Fixed-point decimal numbers with n total digits and x digits after the decimal point
BOOLEAN bool
CHARACTER(x) or CHAR(x) Fixed-length string of length x. Similar to string

prev |top |next