Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Should be code not name, e.g. MSFT
- import sqlite3
- def add_table(stockcode):
- conn = sqlite3.connect('app/static/db/cache.db')
- c = conn.cursor()
- c.execute("CREATE TABLE [symbol_{}] (title text, permalink text, score integer, created real)".format(symbol))
- conn.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement