L
Lakshmi sowjanya

Posted on 28th March 2024|41 views

0
votes

Postgres Enum

What is Enumeration data type in PostgreSQL?

Answers
P
Athiq mohd

Posted on 28th March 2024

Enumeration(Enum) data type is an ordered and static collection of a set of data as it is same in all the other types of programming languages.

Syntax or Example:

CREATE TYPE Table_name AS ENUM ('samyuk', 'aroni', 'Yadav');

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos