pyodbc.ProgrammingError: ('The SQL contains 0 parameter markers, but 3 parameters were supplied', 'HY000')

前端 未结 1 715
天涯浪人
天涯浪人 2020-12-19 20:39

I am using Python 3.6, flask, pyodbc, and connect to SQL Server.

I am trying to make a connection to a database, then creating a query with parameters.

Here

相关标签:
1条回答
  • 2020-12-19 21:29

    pyodbc uses ?, not %s, as the parameter placeholder.

    0 讨论(0)
提交回复
热议问题