Some databases (e.g. MySQL) does not store decimal places for seconds unless the number of digits needed is directly specified (e.g. DATETIME(4) for 4 digits) when creating the table in the database. Using SQLCreateTable the number of characters in a VarChar column is specified using "DataLength"->k for a SQL interpretation of VARCHAR(k). I would like to know if there is a similar option to "DataLength" that would work to specify the number of precision digits required for the seconds. Similarly, REAL, NUMERIC, and other data types share analog problems to specify the number of precision digits.
1 Answer
$\begingroup$
$\endgroup$
Yes, the value of the DataLength
option will get appended to any type.
For example, to obtain DATETIME(4)
just set the SQLColumn
options "DataTypeName" -> "DATETIME"
and "DataLength" -> 4
.
SQLExecute
with your desiredCREATE TABLE
statement? $\endgroup$