Can someone help me with PostgreSQL error? My code: db_obj.execute(f'DELETE FROM

bot_users_weights_table WHERE "user_id"={msg.from_user.id} ORDER BY "ID" DESC LIMIT 1')
Error: psycopg2.errors.SyntaxError: syntax error at or near "ORDER"

3 ответов

23 просмотра

Don't think you can use order by in a delete

Владимир-Петров Автор вопроса

Похожие вопросы

Карта сайта