在 phpmyadmin 中将字段设置为 Not NULL [英] Setting a field as Not NULL in phpmyadmin

查看:38
本文介绍了在 phpmyadmin 中将字段设置为 Not NULL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到可以在 phpmyadmin 中将字段设置为 NOT NULL 的位置.我想让我的数据库控制这个功能.我正在以编程方式执行此操作,但我相信这可以为我的系统添加额外的安全层.

I can't find where I can set a field as NOT NULL in phpmyadmin. I would like to have alse my database controlling this feature. I am doing this programatically but I believe that this could add an extra layer of security in my system.

推荐答案

在结构"选项卡中编辑字段时,查找NULL"复选框.未选中时,这等效于 NOT NULL 语句.

When editing the field in the Structure tab, look for the "NULL" checkbox. When un-checked, this is the equivalent of the NOT NULL statement.

这篇关于在 phpmyadmin 中将字段设置为 Not NULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆