エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
mysqldb duplicate entry error handling - Post.Byes
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
mysqldb duplicate entry error handling - Post.Byes
Hi guys i try to run this code in loop and to pass even the entry is duplicated def email_insert_... Hi guys i try to run this code in loop and to pass even the entry is duplicated def email_insert_in _db(email): sql="INSERT INTO emails (email) values ('%s') "%(email) db=_mysql.conne ct(host = "localhost" , user = db_user, passwd = db_pass, db = db_name) try: db.query(sql) except IndentationErro r: print "duplicate" pass also try to (raise, continue) but can't continue in loop error output is: Fi