Answer the question
In order to leave comments, you need to log in
How to change the default value in the SQL database during the program?
Greetings gentlemen. Faced a small problem. When creating a table in SQL, one default value is specified, but the program needs to change it.
Tell me how you can do this in Python, the question seems to be not difficult, but somehow I did not find an answer by googling. Thanks to
Answer the question
In order to leave comments, you need to log in
Use the module to work with a specific DBMS (pymysql, pysqlite) and change the values in the table with SQL queries.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question