Inserting through pymssql but no rows appear in the database

前端 未结 1 1357
孤街浪徒
孤街浪徒 2021-01-25 02:12

Im quite new to python and im trying to write a script that puts values into a SQL database.

its a simple 2 column table that looks like this:

CREATE TA         


        
相关标签:
1条回答
  • 2021-01-25 02:29

    Ha, I've banged my head on this a few times as well. As far as I can tell, you are missing a commit statement. As per this example, add a conn.commit(), and hopefully you will be golden.

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