当前位置:网站首页>Flask reports an error: pymysq1.err OperationalError:(1054, “Unknown column ‘None‘ in ‘field list‘“)
Flask reports an error: pymysq1.err OperationalError:(1054, “Unknown column ‘None‘ in ‘field list‘“)
2022-07-29 01:13:00 【:D...】
Project scenario :
Use flask Building framework Connect mysql Error occurs when inserting data into the table
pymysq1.err.OperationalError:(1054, "Unknown column 'None' in 'field list'")
“ The unknown column in the field list is None”
Screenshot of error reporting


Cause analysis :
primary sql sentence :
sql = f"""insert into user values ({uname}, {pwd}, {mobile}, {email})"""
sql Statement did not get data , Field has no value
Solution :
The field has no value, indicating that the front end has not obtained
Front end data acquisition form It is amended as follows json
uname = request.json.get('zh')
pwd = request.json.get('mm')
mobile = request.json.get('mobile')
email = request.json.get('email')
边栏推荐
- 新拟态个人引导页源码
- 【AD学习】本次海上航行器大赛画pcb图的历程
- Beginner's Guide to electronic bidding
- (update 20211130) about the download and installation of Jupiter notebook and its own configuration and theme
- 线程锁及锁的升降级
- 【刷题笔记】二进制链表转整数
- Necessary interview skills for Android (including interview questions and learning materials)
- Wechat campus bathroom reservation for the finished product of applet graduation design (7) mid term inspection report
- What opportunities does the London gold real-time market bring?
- 【树莓派】widows电脑如何与树莓派连接
猜你喜欢

ACM SIGIR 2022 | interpretation of selected papers of meituan technical team

【树莓派】widows电脑如何与树莓派连接

18 diagrams, intuitive understanding of neural networks, manifolds and topologies

Seven SQL performance optimizations that spark 3.0 must know

Linux Redis 源码安装

Thread lock and its ascending and descending levels

Charles -- teach you how to use the packet capturing tool from 0-1

散列表 ~

Day2: 130 questions in three languages

可视化全链路日志追踪
随机推荐
The method of tracking the real-time market of London Silver
小程序毕设作品之微信校园浴室预约小程序毕业设计成品(6)开题答辩PPT
Transfer: cognitive subculture
[untitled]
大页内存原理及使用设置
ActiveMQ basic details
[Commons lang3 topic] 005- objectutils topic
Hash table~
Instruction rearrangement, happens before, as if serial
Google Play APK 上传其他国际应用商店
如何处理项目中的时间、范围和成本限制?
电子招标初学者指南
【idea】查询字段使用位置
(perfect solution) why is the effect of using train mode on the train/val/test dataset good, but it is all very poor in Eval mode
Univariate function integration 1__ Indefinite integral
深度学习 | MATLAB实现TCN时间卷积神经网络spatialDropoutLayer参数描述
How to check the redis Version (check the redis process)
[target detection] Introduction to yolor theory + practical test visdrone data set
[Jenkins' notes] introduction, free space; Continuous integration of enterprise wechat; Allure reports, continuous integration of email notifications; Build scheduled tasks
Recursion and divide and conquer