当前位置:网站首页>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';边栏推荐
猜你喜欢
随机推荐
物联网安全系列 - 非对称加密算法 ECDH
The industry's first "Causal Inference Whole Process" Challenge!WAIC 2022 · Hackathon invites global developer elites to challenge
Django+MySQL+HarmonyOS------------笔记二
百度飞浆EISeg高效交互式标注分割软件的使用教程
C语言——按照指定分割符分割字符串
VSCode代码格式化快捷键及保存时自动格式化
CoCube显示测试笔记
Task02:PyTorch进阶训练技巧
djanjo fourth training
Nacos是如何实现心跳机制和服务续约以及超时剔除服务机制的?
蓝牙Mesh的基本概念
HTTS 为什么更安全?
动手学概率论(2)
物联网安全-消息认证码
Want to use SQL to achieve two days after the data contrast, the new data sheet and a list of tags
BLE安全之配对流程剖析(2)
关于#sql#的问题:kingwow数据库
Redis(4)-Redis遇到的问题
数控机床工作平台位置伺服系统的的数学建模与仿真
物联网安全 - 密码学概述









