K
K
Kirill Maksimov2020-11-22 23:14:46
Python
Kirill Maksimov, 2020-11-22 23:14:46

id for rows in sqlite3 in python?

I am writing a Python bot for telegram using the telebot library. The bot has an sqlite3 database connected to it. I need the user's messages to be entered into the table, and, if necessary, to get a message from it by row id. When using id INTEGER PRIMARY KEY, as well as with the AUTOINCREMENT addition, it gives errors that the id column was not found and others.

Help to make numbering, thanks to which it will be possible to display a certain column of a certain row.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question