|
#7 -- How to CREATE a Table |
|
|
Use getTypeInfo() | |
|
|
Loop through results to find the best match |
|
|
|
For example, if creating a DECIMAL(8,0) column, search for a SQL DECIMAL or SQL NUMERIC, then SQL INTEGER, then SQL DOUBLE or SQL FLOAT, then SQL CHAR or SQL VARCHAR | |
|
|
Ignore types that don't match your requirements (money, auto increment, etc.) | |