18

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.

2 Answers 2

38

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.

Sign up to request clarification or add additional context in comments.

Comments

19

not null in php my admin

If you uncheck this property then it means that it is not null.

1 Comment

UX/UI designer for phpMyAdmin needs a new day job, lol.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.