I'm trying to declare an ENUM and use it in table creation. Here is my code:
SET @myEnum= ENUM('fulfilled', 'noshow', 'cancelled');
CREATE TABLE `Appointments` (
`AppointmentID` VARCHAR(36) NOT NULL UNIQUE,
`AppointmentFulfilled` @myEnum
);
But MariaDB is giving me error: '@myEnum is not valid at this position, expecting BIGINT...'
Any ideas?