I have a problem with those lines on my MAC, on mariaDB 10.4.11 version.
DROP DATABASE IF EXISTS Employe_Programmeurs;
CREATE DATABASE Employe_Programmeurs;
USE Employe_Programmeurs;
CREATE TABLE Employe(
noEmp INT(5),
nom VARCHAR(10),
prenom VARCHAR(10),
CONSTRAINT pk_Employe_noEmp PRIMARY KEY (noEmp)
);
It tells me that :
And when I enter those lines on Windows, it works without warning and I can see them in the SHOW CREATE TABLE. On Mac, it doesn't show me the CONSTRAINT of this Primary key on SHOW CREATE TABLE.
I updated, downgraded, but still no solution.