Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はpysqliteデータベースにいくつかのデータを挿入しようとしていますが、コードはエラーなしで正常に実行されますが、データベースには何も表示されず、変数に値が含まれていることを確認しました
cur = self.con.execute("insert into urllist(url) values('%s')" % seed)
私はテーブルと列の名前を再確認しましたが、それらも正しいです
con.commit() を呼び出していますか?
接続を閉じる前にこのメソッドを使用しないと、明らかに変更が失われます。
http://readthedocs.org/docs/pysqlite/en/latest/sqlite3.html
タグ)