# Not all parameters were used in the SQL statement (Python, MySQL)

**URL:** <https://discuss.python.org/t/not-all-parameters-were-used-in-the-sql-statement-python-mysql/16466>\
**Category:** Python Help\
**Tags:** help\
**Created:** [June 12, 2022, 8:28am UTC](https://discuss.python.org/t/not-all-parameters-were-used-in-the-sql-statement-python-mysql/16466 "2022-06-12T08:28:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akhilk](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@Akhilk](https://discuss.python.org/u/Akhilk)\
**Post date:** [June 12, 2022, 8:28am UTC](https://discuss.python.org/t/not-all-parameters-were-used-in-the-sql-statement-python-mysql/16466/1 "2022-06-12T08:28:23Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex002/uploads/python1/original/2X/e/eff608dab3d65469cf87f8dc8395b1247d42ce42.png)

Do you understand why?

---

<div class="post-metadata">

**Author:** ![mikecm](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/mikecm/32/5448_2.png) [@mikecm](https://discuss.python.org/u/mikecm)\
**Post date:** [June 12, 2022, 11:33am UTC](https://discuss.python.org/t/not-all-parameters-were-used-in-the-sql-statement-python-mysql/16466/2 "2022-06-12T11:33:31Z")

</div>

You have attempted to insert 3 numbers and 3 quoted texts. Its likely that one of those has not been used due possibly to how the itertuples are handled. If you can figure out which one is missing then you can track back to the issue. Suggest use IDE such as Pycharm and run in debug and follow each line…
