Q. Which among the following is the correct syntax for defining "ENUM" in Mysql?

  • (A) gender ENUM ('M', 'F'),
  • (B) gender ENUM,
  • (C) gender ENUM ( ),
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) gender ENUM ('M', 'F'),
Explanation: This question is about ENUM in MySQL, which is a special data type used to define a column that can only hold a specific set of values. Imagine you have a column called "gender," and you only want it to contain either "Male" or "Female." This is where ENUM comes in handy. Here's the breakdown of the options: * Option A: gender ENUM ('M', 'F')
Explanation by: Shiva Ram
This question is about ENUM in MySQL, which is a special data type used to define a column that can only hold a specific set of values. Imagine you have a column called "gender," and you only want it to contain either "Male" or "Female." This is where ENUM comes in handy. Here's the breakdown of the options: * Option A: gender ENUM ('M', 'F')

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
121
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
84%
Success Rate