Created
December 17, 2015 17:24
-
-
Save vladyio/0abbf7d9585d1bba1b54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
conn = sqlite3.connect('base.db') # Название файла БД | |
c = conn.cursor() | |
c.execute('''create table users | |
(id int, nick text, login text)''') # Создали таблицу users с полями ID, NICK, LOGIN | |
# Сохраняем изменения | |
conn.commit() | |
c.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment