List of PDOStatement::bindParam data_type parameters

后端 未结 1 1242
感情败类
感情败类 2020-12-30 08:49

Is there a list describing all of the data_type parameters you can use in PDOStatement::bindParam() ? If none, what do you commonly use, and for what type of fi

相关标签:
1条回答
  • 2020-12-30 09:32

    From the documentation here:

    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.
    
    0 讨论(0)
提交回复
热议问题