M
M
mcjohnyx2020-06-12 18:13:54
Python
mcjohnyx, 2020-06-12 18:13:54

Why doesn't update data in aiosqlite column work?

Good day to all!
I am creating an sql query to the database. It looks like this:

conn = await aiosqlite.connect('datebase.db')
cursor = await conn.cursor()
await cursor.execute('UPDATE peoples SET amount=amount+50 WHERE id=123')

I get the error no such table: peoples
Everything works fine in the sqlite console. No mistakes. For some reason it doesn't work in python.
How to solve this problem?

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