Skip to content

Instantly share code, notes, and snippets.

@vladyio
Created December 17, 2015 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladyio/0abbf7d9585d1bba1b54 to your computer and use it in GitHub Desktop.
Save vladyio/0abbf7d9585d1bba1b54 to your computer and use it in GitHub Desktop.
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