How can I create a table with one column of enum datatype in PostgreSQL database?
Table name: Employee
Columns:
ID: Integer
Name: ENUM
Below is the query but not sure it is correct or not.
CREATE TYPE Name AS ENUM();
CREATE TABLE IF NOT EXISTS Employee(
ID integer NOT NULL,
Name DEFAULT NULL,
CONSTRAINT "Employee_pkey" PRIMARY KEY (id)
);
Can someone please help.
