List of PHP native_type's for PDO getColumnMeta()

后端 未结 6 1242
走了就别回头了
走了就别回头了 2020-12-19 12:42

I am using the PDO Database Abstraction library to make sure my code is portable. However, I now find that I need column information so I turned to the PDOStatement->getColu

6条回答
  •  醉梦人生
    2020-12-19 13:25

    PDO is not a database abstraction. It is "only" an unified access layer. If you switch to another database system you most likely have to change the code. Each (specific) database driver returns its own set of values and there's no "translation layer" for the driver:decl_type info in pdo beyond the native_type/pdo_type fields in the result of getColumnMeta()

提交回复
热议问题