简体   繁体   中英

Mssql select returning error for some queries

Array
(
    [0] => 01S02
    [1] => 0
    [2] => [Microsoft][ODBC SQL Server Driver]Cursor type changed (SQLExecute[0] at ext\pdo_odbc\odbc_stmt.c:250)
    [3] => 01S02
)

This is the error I am getting when I do select in my mssql database. I only get this on some query and I dont get it in some query. I am using the same select.

I want to know why I am getting this kind of error in my mssql select.

Some times I get

Array
(
    [0] => 42000
    [1] => 8114
    [2] => [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to numeric. (SQLExecute[8114] at ext\pdo_odbc\odbc_stmt.c:254)
    [3] => 42000
)

What does these error means?

因为在您的代码中无法将varchar to numeric转换varchar to numeric

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM