SQL query fails when trying to include a variable within the string through ODBC in Python

后端 未结 0 812
轮回少年
轮回少年 2020-12-09 20:09

I am using the following code:

import pandas as pd
import pyodbc

calc_date = \'06-12-2020\'

query = str(\'SELECT * FROM table_location.table_name WHERE col1         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题