I need to execute in python an SQL query that adds a new column in sqlite3.
The problem is that sometimes it already exists. Therefore, before executing the query, I need to check if the column exists.
If this happens, I will not fulfill the request.
Is there a way in sqlite for this? Or do I need to do this through a try-catch block in python code?
Thank you very much!
python exists sqlite3 alter
Esabe Mar 01 '10 at 8:59 2010-03-01 08:59
source share