import re from sqlalchemy import * db = create_engine('sqlite:///code.db') db.echo = True metadata = MetaData(db) halo4 = Table('emblem_codes', metadata, autoload=True)
My code returns all the results of 80999. I only want to. What is the best way to do this?
This is an example .db code:
(u'JRQRY-MYHW3-D67GR-7YWFF-CRJ31', None) (u'9D7DR-4WFDY-VG49F-3DYCG-7DYT5', None) (u'QR9WT-P3CTM-PW4WW-34JJ4-RFKV7', None) (u'7FMXQ-H97TC-FFYC6-XHXFV-Y7KR2', None) (u'VKHXW-29WC4-4PF4Y-2QMJ4-4W2H4', None)
source share