Python with MYSQL - sytax problem
2024-10-21 07:33:53
Con= MySQLdb.connect(host='192.168.4.166',user='root',passwd='',db='test')
cur=Con.cursor()
cur.execute('insert into staff_daily(Date,Name,Task_num) values(curdate(),"nicole","'+str(nicole)+'")') //变量上也要加上双引号否则会报错
最新文章
- android持久化技术
- 剑指Offer:解决难题时的三大方法
- sphinx搜索引擎架构图
- ios 开发中 developer tools access 总是要输入密码问题的解决
- Flask框架获取用户IP地址的方法
- spoj 237
- A list of base boxes for Vagrant - Vagrantbox.es
- HDU-1372 Knight Moves (BFS)
- 构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(28)-系统小结
- Spring的bean管理(注解)
- [转载]PS各个工具的字母快捷键和英文全名
- vim 复制粘贴
- Flink官方文档/介绍/教程/用例
- www.jqhtml.com 前端框架特效
- Android查询不到电话号码解决方法
- lsof 命令
- linux下安装nginx以及常用命令指南
- LG2634 [国家集训队]聪聪可可
- Web of Science API
- Tomcat 访问Manager APP报403错误