Ungültige Verwendung von null-Wert

Ich habe ein problem mit mySQL.

Diese Fehlermeldung erscheint:

Invalid use of null value

War ich versucht, um zwei Attribute in einer Tabelle den primary key; hier ist mein code:

alter table contact_info
add primary key(phone_number, contactID);

Hier sind die alter-Anweisungen, den ich in meinem contact_info Tabelle:

alter table contact_info
add contactID varchar(10);

alter table contact_info
add suffixID varchar(8);

alter table contact_info
add titleID varchar(12);

alter table contact_info
add companyID varchar(12);

alter table contact_info
add phonetypeID char(2);

Weiß jemand was falsch ist? Vielen Dank im Voraus.

Schreibe einen Kommentar