Con= MySQLdb.connect(host='192.168.4.166',user='root',passwd='1234',db='test')
cur=Con.cursor()
cur.execute('insert into staff_daily(Date,Name,Task_num) values(curdate(),"nicole","'+str(nicole)+'")') //变量上也要加上双引号否则会报错

 

相关文章:

  • 2021-09-16
  • 2021-06-22
  • 2021-11-09
  • 2022-01-25
  • 2021-11-26
  • 2021-08-21
  • 2022-03-10
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-12-15
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案