Python Forum
how to use items combobox in table name sqlite in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to use items combobox in table name sqlite in python
#1
Hello
I'm developing a small application to manage my student class with python and sqlite3. I put the list of names of my classes in a combobox I retrieve the selected class in a variable but I cannot insert this variable in a sqlite3 request:
cursor.execute ("INSERT INTO mavariable ('Note', 'First name', 'Name', 'Number') VALUES (?,?,?,?)", (Number, First name, Name, Note))
thanks for the help
Reply
#2
Please, show supporting code
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to parse and group hierarchical list items from an unindented string in Python? ann23fr 0 98 Mar-27-2024, 01:16 PM
Last Post: ann23fr
  need help with data analysing with python and sqlite Hardcool 2 301 Jan-30-2024, 06:49 AM
Last Post: Athi
  python sqlite autoincrement in primary column janeik 6 1,076 Aug-13-2023, 11:22 AM
Last Post: janeik
  Removal of items in .txt using python nanakochan 8 1,664 Sep-02-2022, 04:58 PM
Last Post: perfringo
  Help with subtracting values using SQLite & Python Extra 10 3,288 May-10-2022, 08:36 AM
Last Post: ibreeden
  [Solved]Help with search statement-SQLite & Python Extra 1 1,016 May-06-2022, 07:38 PM
Last Post: Extra
  Help With Python SQLite Error Extra 10 14,566 May-04-2022, 11:42 PM
Last Post: Extra
  Python Sqlite georgebijum 0 1,030 May-04-2022, 10:12 AM
Last Post: georgebijum
  UPDATE SQLITE TABLE - Copy a fields content to another field. andrewarles 14 4,251 May-08-2021, 04:58 PM
Last Post: ibreeden
  concatenating 2 items at a time in a python list K11 3 2,248 Oct-21-2020, 09:34 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020