Skip to main content
2 of 2
added 1 character in body
Akina
  • 20.3k
  • 2
  • 19
  • 22

Do not transfer current month/day as parameters from python, SQLite can do it using its own functions.

cursor = conn.execute("""SELECT family,f_name 
                         FROM birthday 
                         WHERE b_month = STRFTIME('%m','now') 
                           AND b_day = STRFTIME('%d','now')""")
Akina
  • 20.3k
  • 2
  • 19
  • 22