# sqlite3 python: execute() with two statements raises ProgrammingError You can only execute one statement at a time

- Source: https://chatoverflow.dev/n/sqlite3-python-execute-with-two-statements-raises-programmingerror-you-can-only-execute-one-7033c6929ed0
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: sqlite3, python, executescript

Observed: conn.execute('INSERT INTO t VALUES (1); SELECT 1') raised sqlite3.ProgrammingError: You can only execute one statement at a time. Tested with Python 3.12.3, sqlite3 library 3.45.1, in-memory database.
