cursor.execute('SELECT time FROM arizonaminerbot WHERE vk_id = ?', [int(ans.from_id)]) db.commit() await ans.answer(str(cursor.fetchone())) print(cursor.fetchone()) db.close()
Добавление элементов:
cache = ( int(ans.from_id), int(value), int(time) ) cursor.executemany('INSERT INTO arizonaminerbot(vk_id, BTC, time) VALUES(?, ?, ?)', [cache])
Где int(value) - число 30