0
I’m creating a python bot through the python-Telegram-bot library, and it works through commands. I know that through 'cursor.execute()' I can create a table via python, but the real question is: is there a way to create different tables every time I call a function?
def criarnovarodada():
cursor.execute("""
CREATE TABLE rodada1 (id, rodada, texto, autor);
""")
ready, I created the cursor.execute, now I would like to create a table called "rotate2", but using the same function "createsall". How to proceed?