"""
执行查询语句
"""

import sys
database, querystr = 'dbase1', 'select * from people'
if len(sys.argv) > 1: database = sys.argv[1]
if len(sys.argv) > 2: querystr = sys.argv[2]

from makedicts import makedicts
from dumpdb import showformat
from loaddb import login

conn, curs = login(database)
rows = makedicts(curs, querystr)
showformat(rows)
































1beff85bd51185a881e8338bb6cab53217a77db8
<mask token>

<mask token>
if len(sys.argv) > 1:
    database = sys.argv[1]
if len(sys.argv) > 2:
    querystr = sys.argv[2]
<mask token>
showformat(rows)

<mask token>
database, querystr = 'dbase1', 'select * from people'
if len(sys.argv) > 1:
    database = sys.argv[1]
if len(sys.argv) > 2:
    querystr = sys.argv[2]
<mask token>
conn, curs = login(database)
rows = makedicts(curs, querystr)
showformat(rows)

<mask token>
import sys
database, querystr = 'dbase1', 'select * from people'
if len(sys.argv) > 1:
    database = sys.argv[1]
if len(sys.argv) > 2:
    querystr = sys.argv[2]
from makedicts import makedicts
from dumpdb import showformat
from loaddb import login
conn, curs = login(database)
rows = makedicts(curs, querystr)
showformat(rows)

"""
执行查询语句
"""

import sys
database, querystr = 'dbase1', 'select * from people'
if len(sys.argv) > 1: database = sys.argv[1]
if len(sys.argv) > 2: querystr = sys.argv[2]

from makedicts import makedicts
from dumpdb import showformat
from loaddb import login

conn, curs = login(database)
rows = makedicts(curs, querystr)
showformat(rows)































