## 28.1.1 Database Tables (cont.)

- Allowable column types differ somewhat
- SQL-compliant RDBs commonly support:

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