79729049

Date: 2025-08-07 19:17:23
Score: 0.5
Natty:
Report link

You could put the format string into a query parameter:

sql = "select name, date_format(%s, birthdate) as date from People where name = %"

cursor.execute(sql, ("%Y-%m-%d", "Peter"))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Franz Fankhauser