修复phpmyadmin中的文本默认值

发布于 2025-02-01 11:33:48 字数 302 浏览 2 评论 0原文

当我设置默认值时:

在此处输入image Descriage

我有:

在这里输入图像描述

我希望结果是[]不是'[] [] 我如何解决?

When i set a default:

enter image description here

I have:

enter image description here

I want result is [] not '[]'
How i can fix?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧人哭 2025-02-08 11:33:48

它按预期工作,默认值将设置为''的内部。

在这里,当我们将某些内容更改为int的数据类型并给出默认值232时,它没有单个报价。

It works as intended, the default will be set to what is inside of ''
enter image description here

enter image description here

And when you insert new row without defining something column it will still have default value you want.

enter image description here

enter image description here

That means that SQL ignores the '' and its only use is to show that its DateType is a TEXT and not an INT.

enter image description here

Here, when we changed something to DataType of INT and gave it default value 232 it doesn't have a single quote.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文