1、python执行sql语句时报错:

ValueError: unsupported format character 'y' (0x79) at index 75

date_format(NOW(),'%y%m%d%h%m%s') sql语句中时间格式化%Y与python的参数%s冲突,
改成date_format(NOW(),'%%y%%m%%d%%h%%m%%s')

相关文章:

  • 2022-12-23
  • 2021-05-06
  • 2022-01-22
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
猜你喜欢
  • 2021-12-19
  • 2021-06-01
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案