Syntax for a parameter query in Python (pyodbc)

后端 未结 1 1268
旧时难觅i
旧时难觅i 2020-12-12 02:44

I am trying to write results of some processing into SQL Server table. My results are store in a list of lists where each item of the list is a list. I am using parameters (

1条回答
  •  醉梦人生
    2020-12-12 03:32

    You should be using ? as parameter markers I believe.

    Your sql should probably look like this:

    sqlStatement = "INSERT INTO CEA_CR (SessionID, Session.Call_TYPE_Assigned, Session.Did_Call_Type_happen_on_this_call, Session.Was_there_a_system_or_Rep_generated_Memo_that_matches_with_Call_Type, cycle, version) VALUES (?, ?, ?, ?, ?, ?)"
    

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