and*_*dyk 9 php pdo pdostatement
是否有一个列表描述了您可以使用的所有data_type参数PDOStatement::bindParam()?如果没有,你通常使用什么,以及什么类型的领域?
根据PHP手册:data_type使用PDO :: PARAM_*常量的参数的显式数据类型.
我知道PDO::PARAM_INT和PDO::PARAM_STR.我听说过,PDO::PARAM_LOB但我不知道如何以及何时使用它.(约会?)
Tom*_*igh 17
从这里的文档:
Run Code Online (Sandbox Code Playgroud)PDO::PARAM_BOOL (integer) Represents a boolean data type. PDO::PARAM_NULL (integer) Represents the SQL NULL data type. PDO::PARAM_INT (integer) Represents the SQL INTEGER data type. PDO::PARAM_STR (integer) Represents the SQL CHAR, VARCHAR, or other string data type. PDO::PARAM_LOB (integer) Represents the SQL large object data type. PDO::PARAM_STMT (integer) Represents a recordset type. Not currently supported by any drivers. PDO::PARAM_INPUT_OUTPUT (integer) Specifies that the parameter is an INOUT parameter for a stored procedure. You must bitwise-OR this value with an explicit PDO::PARAM_* data type.
| 归档时间: |
|
| 查看次数: |
14746 次 |
| 最近记录: |