当前位置:网站首页>BLOB, TEXT, GEOMETRY or JSON column 'xxxx' can't have a default value
BLOB, TEXT, GEOMETRY or JSON column 'xxxx' can't have a default value
2022-08-08 08:04:00 【industrious sloth】
Execution statement prompt: 1101 - BLOB, TEXT, GEOMETRY or JSON column 'enclosure' can't have a default value
Online solutions generally say either remove strict mode, or comment out or clear sql_mode
A variety of testing attempts just didn't work
Check the new features of MySQL, the type of the field is json, the length cannot be set, it can be NULL but cannot have a default value
It can be changed to null, so that the laterModify the code by yourself
ALTER TABLE biz_cost_expense ADD enclosure json DEFAULT null COMMENT 'Attachment';ALTER TABLE biz_income_expense ADD enclosure json DEFAULT null COMMENT 'attachment';
边栏推荐
- 分清成员函数非成员函数和友元函数
- 物联网安全 - 密码学概述
- 数据智能正当时,九章云极DataCanvas公司荣获“最具投资价值公司”
- Source Insight 4.0 安装过程及简单使用
- lua --- 基本语法学习
- C# FileSystemWatcher 实时监控文件的增加、修改、重命名和删除实例
- Spark2 struct SQL processing
- [Optimized scheduling] Based on particle swarm to realize economic scheduling optimization of microgrid under grid-connected model with matlab code
- 了不起的certbot申请免费SSL证书
- 蓝牙5.2新特性 LE Audio - Isochronous channel
猜你喜欢
CoCube显示测试笔记
炽热如初 向新而生|ISC2022 HackingClub白帽峰会圆满举办
Raspberry pie 】 【 without WIFI even under the condition of the computer screen
【回归预测】基于GPML工具箱的高斯过程回归附matlab代码
冒泡排序
HTTS 为什么更安全?
djanjo fourth training
【项目问题】Ionic开发移动端app,手把手教你如何打包生成apk
[Regression prediction] Gaussian process regression based on GPML toolbox with matlab code
六十分之七——焦虑路上的涅槃
随机推荐
Offensive and defensive world - leaking
Raspberry pie 】 【 without WIFI even under the condition of the computer screen
云服务器搭建MQTT消息代理EMQX
物联网安全-单向散列算法
一篇文章带你解读蓝牙配对绑定
【枚举】连续因子
lvm creates logical volumes
用平衡二叉搜索树解决硬木种类问题
Spark2 struct SQL processing
小程序 数据监听(observers),避免赋值死循环
数据治理(三):数据质量管理
[Typescript] tsconfig.json项目配置说明
Zigbee常见错误问题汇总
物联网安全系列 - 非对称加密算法 ECDH
lua --- 基本语法学习
CoCube显示测试笔记
【项目问题】Ionic开发移动端app,手把手教你如何打包生成apk
攻防世界——lottery
归并排序
攻防世界——ics-05