First look
This commit is contained in:
10
sqlLite/get.py
Normal file
10
sqlLite/get.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import sqlite3
|
||||
from . import db_name
|
||||
|
||||
def get_user():
|
||||
conn = sqlite3.connect(db_name)
|
||||
cursor = conn.cursor()
|
||||
cursor.execute('select * from T_USERS')
|
||||
rows = cursor.fetchall()
|
||||
for row in rows:
|
||||
print(row)
|
||||
Reference in New Issue
Block a user