Answer the question
In order to leave comments, you need to log in
Extracting data from a database in Python. What is the best way to process it?
I am writing a bot for telegram. I use Python 3
There is a SQLlite base. Consists of 7 columns.
id, name, ip
, port, login, password, telegram_id
c.execute("SELECT * FROM resto WHERE telegram_id LIKE ?", (key, )).fetchall()
<class 'list'>
[(1, 'Build', '192.168.1.1', '8080', 'admin', 'admin', '10'),
(2, 'Build2', '192.168.1.2', '8080', 'admin', 'admin', '12')]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question