S
S
szjyakgf2022-03-20 12:46:10
SQLite
szjyakgf, 2022-03-20 12:46:10

How to avoid error in sqlite3?

error:
sqlite3.OperationalError: duplicate column name:
How to check for the presence of a column: if one already exists, write: Such a column already exists

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2022-03-20
@szjyakgf

How to check for the presence of a column: if one already exists, write: Such a column already exists
well, catch sqlite3.OperationalError via try-except

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question