当前位置:网站首页>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')
边栏推荐
- Brushless DC motor controller (how much is the hall charge for changing the motor)
- RHCE命令练习(二)
- Time series prediction | MATLAB realizes time series prediction of TCN time convolution neural network
- (完美解决)为什么在train/val/test数据集上用train模式效果都很好,但是在eval模式下全部很差
- ActiveMQ基本详解
- 大页内存原理及使用设置
- QT static compiler (MinGW compilation)
- 如何处理项目中的时间、范围和成本限制?
- Plato launched the LAAS protocol elephant swap, which allows users to earn premium income
- “index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“
猜你喜欢

Necessary interview skills for Android (including interview questions and learning materials)

Plato launched the LAAS protocol elephant swap, which allows users to earn premium income

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

Irregular clipping of NC data with CDO

Self-attention neural architecture search for semantic image segmentation

PLATO上线LAAS协议Elephant Swap,用户可借此获得溢价收益

QT静态编译程序(Mingw编译)

Connect with Alipay payment

Inftnews | yuanuniverse shopping experience will become a powerful tool to attract consumers

Cookie和Session
随机推荐
“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“
【mysql】字符串转int
递归与分治
The method of tracking the real-time market of London Silver
18张图,直观理解神经网络、流形和拓扑
如何处理项目中的时间、范围和成本限制?
机器学习 | MATLAB实现RBF径向基神经网络newrbe参数设定
MySQL stored procedure realizes the creation of a table (copy the structure of the original table and create a new table)
Charles -- 从0-1教你如何使用抓包工具
[Jenkins' notes] introduction, free space; Continuous integration of enterprise wechat; Allure reports, continuous integration of email notifications; Build scheduled tasks
What opportunities does the London gold real-time market bring?
Spark 3.0 中七个必须知道的 SQL 性能优化
mysql分表之后怎么平滑上线?
Irregular clipping of NC data with CDO
时序预测 | MATLAB实现TCN时间卷积神经网络的时间序列预测
【刷题笔记】二进制链表转整数
Date conversion EEE MMM DD hh:mm:ss zzz YYYY
How to implement the time impact analysis of the construction project?
[Commons lang3 topic] 003- randomstringutils topic
可视化全链路日志追踪