質問

PDOStatement :: bindParam()で使用できるすべてのdata_typeパラメータを説明するリストはありますか?存在しない場合、一般的に何を使用し、どのタイプのフィールドに使用しますか?

PHPマニュアルによると: data_type PDO :: PARAM_ *定数を使用したパラメーターの明示的なデータ型。

PDO :: PARAM_INT および PDO :: PARAM_STR について知っています。 PDO :: PARAM_LOB のことを聞いたことがありますが、それをいつどのように使用するかはわかりませんでした。 (日付?)

役に立ちましたか?

解決

ドキュメントこちらから:

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.
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top