Jump to content

Null vs Not Null


sergeidave

Recommended Posts

Hi guys,

 

If I create a field in a table as a "Not Null" would this prevent a new record to be created unless that field is properly filled?

I'm playing around with a test website and I tried leaving blank a "Not null" field but the record was created anyway with that field empty.

Maybe I'm not understanding the Null vs Notnull stuff correctly?

If so, how would one restrict the creation of new records unless a not null field contains valid (or data at all) data?

Thanks!!

Link to comment
https://forums.phpfreaks.com/topic/153556-null-vs-not-null/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.