MySQL NOT NULL?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
techkid
Forum Commoner
Posts: 54
Joined: Sat Sep 05, 2009 11:18 pm
Location: Maldives

MySQL NOT NULL?

Post by techkid »

I have seen many people using NOT NULL when creating tables.

Example:

Code: Select all

CREATE TABLE table_name
(
column_name data_type NOT NULL,
)
I just want to know the use of that NOT NULL.

Any further instructions regarding it?
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: MySQL NOT NULL?

Post by papa »

Google my man:

MySQL reference
Post Reply