BhavinPanch
2/28/2019 - 8:29 AM

SQL Question 6

SQL Question 6


def check_user_exists(connection, email):
    cursor = connection.cursor()
    cursor.execute('SELECT email FROM users WHERE email = ?',(email,))
    results = cursor.fetchone()
    return results is not None