I need a way to determine the type of database column (varchar / numeric / date / ...) when reading from a database with PDO.
When retrieving values from a database, PDO produces only string values, regardless of the actual type of table column.
Is there any specific way, other than a driver, to get this information? I know there are SQL statements that extract types for any given table, but I would prefer a more general solution.
EDIT:
PDOStatement :: getColumnMeta () is useless to me because it is not supported by the PDO driver that I am currently using (Oracle).
source
share