当前位置:网站首页>Field * doesn't have a default value problem
Field * doesn't have a default value problem
2022-06-13 03:41:00 【Hacah】
Preface
Recently developed , Insert data into the table , There is Field * doesn’t have a default value Report errors , The primary key uses String type .
One 、 scene
The watch uses String Type as primary key , Use MybatisPlus When inserting data , The primary key brings data into the database . And then came 
as a result of : The primary key has no default value , The value passed in was not inserted into the database .
Primary key cannot be empty ,String Type cannot auto increment primary key .
If you use a framework , The strategy needs to be well chosen , Change the strategy to input that will do .
边栏推荐
- China Civil Aviation Statistical Yearbook (1996-2020)
- 在JDBC连接数据库时报错:Connection to 139.9.130.37:15400 refused.
- swap()
- Simulink代码生成: 简单状态机及其代码
- (九)详解广播机制
- [interview review] update from time to time for personal use
- Onnx+tensorrt+yolov5: yolov5 deployment based on trt+onnx 1
- [test development] blog system - LoadRunner performance test (publish blog function benchmark test)
- [azure data platform] ETL tool (6) -- re understanding azure data factory
- Multi thread writing method and the making of slot machine
猜你喜欢

MASA Auth - SSO與Identity設計

Get to know druid IO real time OLAP data analysis storage system
![[azure data platform] ETL tool (5) -- use azure data factory data stream to convert data](/img/5c/79319a73881b645edaca77990f68a8.jpg)
[azure data platform] ETL tool (5) -- use azure data factory data stream to convert data

look on? What is the case between neo4j and ongdb?

【测试开发】文件压缩项目实战

Installing MySQL 8.0.20 under Linux and ubuntu20.04 LTS

Simulink代码生成: 查表模块及其代码

【测试开发】自动化测试selenium(三)——unittest框架解析

【测试开发】博客系统——Loadrunner性能测试(发布博客功能 基准测试)

Druid query
随机推荐
Onnx+tensorrt+yolov5: yolov5 deployment based on trt+onnx 1
[test development] automated test selenium (III) -- unittest framework analysis
IP address and classification
Understanding the ongdb open source map data foundation from the development of MariaDB
Oracle built-in functions
Druid query
【測試開發】自動化測試selenium(三)——unittest框架解析
[azure data platform] ETL tool (2) -- azure data factory "copy data" tool (cloud copy)
Time complexity
SQL injection case demonstration and preventive measures
Patrick Pichette, partner of inovia, former chief financial officer of Google and current chairman of twitter, joined the board of directors of neo4j
【面试复习】自用不定时更新
Environmental pollution, enterprises, highways, fixed assets, foreign investment in all prefecture level cities in China - latest panel data
MySQL auto sort function deny_ rank() over()、rank() over()、row_ Num() over() usage and differences
C language programming -- input a string (including letters, numbers, punctuation marks, and space characters) from the keyboard, calculate the actual number of characters and print out, that is, it d
Spark optimization - data skew solution
(九)详解广播机制
Advanced API review
Review the first three IO streams
【测试开发】自动化测试selenium(二)——webdriver常用的API