I want to make ItemCode
value in my table required when using the insert statement, I thought of using a NOT NULL
constraint but I do not know if that is correct. Here is the structure of my table
CREATE TABLE Item
(
ID INT auto_increment,
ItemCode VARCHAR(10) unique NOT NULL,
ItemDescription VARCHAR(50),
Price DECIMAL(4,2) DEFAULT 0,
PRIMARY KEY(ID)
);