MSSQL2008 - Pyodbc - Previous SQL was not a query

前端 未结 8 1416
我寻月下人不归
我寻月下人不归 2020-12-05 04:13

I can\'t figure out what\'s wrong with the following code, The syntax IS ok (checked with SQL Management Studio), i have access as i should so that works too.. but for some

8条回答
  •  攒了一身酷
    2020-12-05 04:42

    In case your SQL is not Stored Proc.

    usage of 'xyz != NULL' in query, will give the same error i.e. "pyodbc.ProgrammingError: No results. Previous SQL was not a query."

    Use 'is not null' instead.

提交回复
热议问题