mysql 表单内缺少值_PHPMyAdmin警报框-表单中缺少值-填写所有常用字段吗?

在使用PHPMyAdmin保存表格时遇到问题,即使已输入所有常规信息,仍然出现'表单中缺少值!'的警告。尝试过更改数据类型、添加默认值、使用不同表引擎等方法,但问题未解决。解决方案可能是定义非空(NOT NULL)列时需要提供默认值。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

bd96500e110b49cbb3cd949968f18be7.png

For some reason while using PHPMyAdmin and attempting to save a table, even though I've entered all of the information I usually do I'm getting an alert box popping up with the content "Missing value in the form!".

Here's a screenshot of my PHPMyAdmin console (2 screens merged due to resolution):

What I've tried so far:

Changing the data types all to VARCHAR with a length of 255 (except for the deindeal_id column, which remained INT with a length of 12).

Encasing description in "`" (bacticks), thinking it may be a reserved word of some sort.

Adding a coalition.

Using different table engines (InnoDB, MyISAM (the one I wanted)).

I'm really stumped as to what could be causing this issue, so any answers would be greatly appreciated!

解决方案

Got the same error, probably a Bug.

What Lex said: "Maybe if you define a column NOT NULL (ie. don't check the box in the Null column, you have to define a default value? – Lex 20 hours ago"

Nope. Doesn't work either and wouldn't make much sense. If you don't define a default value, the server will either insert an empty string, or fail the query; depending on settings.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值