I have a variable like below in python;
run_id=5654
When i execute the below code;
df=curs.execute("select* from [DATABASE] where RunId=run_id")
I got an error:
DataError: ('22018', "[22018] [Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting the varchar value 'run_id' to data type smallint. (245) (SQLExecDirectW)")
Could you please help me about this? How can i proceed?