Untitled
unknown
plain_text
a year ago
414 B
20
Indexable
import sqlite3 # Criar e conectar ao banco de dados with sqlite3.connect('artistas.db') as conexao: # Criar um cursor para executar comandos SQL sql = conexao.cursor() # Criar a tabela tb_banda, se ela não existir sql.execute(''' CREATE TABLE IF NOT EXISTS tb_banda ( nome TEXT, estilo TEXT, membros INTEGER ); ''') conexao.commit()
Editor is loading...
Leave a Comment