当前位置:网站首页>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边栏推荐
猜你喜欢

Getting started stm32--gpio (running lantern) (nanny level)

【Note17】PECI(Platform Environment Control Interface)

开关电源Buck电路CCM及DCM工作模式

Detailed explanation of pointer and array written test of C language

2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank

Use of metadata in golang grpc

数学公式截图识别神器Mathpix无限使用教程

PLC编程基础之数据类型、变量声明、全局变量和I/O映射(CODESYS篇 )
![[screen recording] how to record in the OBS area](/img/34/bd06bd74edcdabaf678c8d7385cae9.jpg)
[screen recording] how to record in the OBS area

Neural structured learning 4 antagonistic learning for image classification
随机推荐
How to design API return code (error code)?
证明 poj 1014 模优化修剪,部分递归 有错误
Three. JS VR house viewing
Technical specifications and model selection guidelines for TVs tubes and ESD tubes - recommended by jialichuang
Common JVM tools and optimization strategies
Data analysis - Thinking foreshadowing
14种神笔记方法,只需选择1招,让你的学习和工作效率提高100倍!
[screen recording] how to record in the OBS area
poj 2762 Going from u to v or from v to u? (infer whether it is a weak link diagram)
White hat talks about web security after reading 2
TypeError: this. getOptions is not a function
Yiwen gets rid of the garbage collector
Object detection based on impulse neural network
Data type, variable declaration, global variable and i/o mapping of PLC programming basis (CoDeSys)
Hj16 shopping list
The method and principle of viewing the last modification time of the web page
Sum of two numbers, sum of three numbers (sort + double pointer)
Go语言实现原理——锁实现原理
Go language implementation principle -- map implementation principle
视频标准二三事