For MSSQL data type bigint use
SQLFLT8 type parameter on mssql_bind
PHP - Manual: 预定义常量
2024-11-14
下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。
MSSQL_ASSOC
(integer)
MSSQL_NUM
(integer)
MSSQL_BOTH
(integer)
SQLTEXT
(integer)
SQLVARCHAR
(integer)
SQLCHAR
(integer)
SQLINT1
(integer)
SQLINT2
(integer)
SQLINT4
(integer)
SQLBIT
(integer)
SQLFLT4
(integer)
SQLFLT8
(integer)
For MSSQL data type bigint use
SQLFLT8 type parameter on mssql_bind
SQLINT1 represents one byte, range -128 to 127
SQLINT2 represents two bytes, range -32768 to 32767
SQLINT4 represents four bytes, range -2147483648 to 2147483647