当前位置:网站首页>How to insert data into MySQL database- How can I insert data into a MySQL database?
How to insert data into MySQL database- How can I insert data into a MySQL database?
2022-07-05 23:22:00 【Rich in starch】
problem :
I want to insert the integers 188 and 90 in my MySQL database, but the following code doesn't work: I want to be in my MySQL Insert an integer into the database 188 and 90, But the following code doesn't work :
import MySQLdbconn = MySQLdb.connect(host= "localhost", user="root", passwd="newpassword", db="engy1")x = conn.cursor()x.execute("SELECT * FROM anooog1")x.execute (" INSERT INTO anooog1 VALUES ('%s','%s') ", (188,90))row = x.fetchall()
Why doesn't it work? Why doesn't it work ?
Solution :
Reference resources : https://stackoom.com/en/question/NrdO边栏推荐
- Composition of interface
- Mathematical formula screenshot recognition artifact mathpix unlimited use tutorial
- Neural structured learning - Part 3: training with synthesized graphs
- Multi sensor fusion of imu/ electronic compass / wheel encoder (Kalman filter)
- 2: Chapter 1: understanding JVM specification 1: introduction to JVM;
- 98. 验证二叉搜索树 ●●
- What is the process of building a website
- 第十七周作业
- Week 17 homework
- JVM的简介
猜你喜欢
开关电源Buck电路CCM及DCM工作模式
Selenium+Pytest自动化测试框架实战
From the perspective of quantitative genetics, why do you get the bride price when you get married
Neural structured learning - Part 2: training with natural graphs
Attacking technology Er - Automation
Neural structured learning 4 antagonistic learning for image classification
698. 划分为k个相等的子集 ●●
Technical specifications and model selection guidelines for TVs tubes and ESD tubes - recommended by jialichuang
基于脉冲神经网络的物体检测
TVS管和ESD管的技术指标和选型指南-嘉立创推荐
随机推荐
Three.JS VR看房
2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank
Live tiktok shop 2022 latest gameplay card slot overseas live e-commerce new traffic
The method and principle of viewing the last modification time of the web page
Using LNMP to build WordPress sites
东南亚电商指南,卖家如何布局东南亚市场?
14种神笔记方法,只需选择1招,让你的学习和工作效率提高100倍!
Expectation, variance and covariance
Basic knowledge of database (interview)
CJ mccullem autograph: to dear Portland
From the perspective of quantitative genetics, why do you get the bride price when you get married
Idea rundashboard window configuration
Marginal probability and conditional probability
February 13, 2022 -5- maximum depth of binary tree
视频标准二三事
无刷驱动设计——浅谈MOS驱动电路
Attacking technology Er - Automation
[original] what is the core of programmer team management?
Detailed explanation of pointer and array written test of C language
There are 14 God note taking methods. Just choose one move to improve your learning and work efficiency by 100 times!