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

查看:1366
本文介绍了在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天全站免登陆