Putting constraint on an attribute gender so that it only accepts ‘F’ or ‘M’ characters

I am doing an assignment which is implementing a database that has book, author, publisher and people tables in it.

CREATE TABLE IF NOT EXISTS Author (
    author_id INT,
    author_name VARCHAR(255),
    books_written VARCHAR(255),
    gender CHAR(1),
    birthday DATE,
    country VARCHAR(100),
    PRIMARY KEY(author_name)
);

I have to put constraint on the gender attribute of my Author table so that the only characters in a component for this attribute can be ‘F’ or ‘M’. I only thought of CHAR(1) and i know that it is not the solution. How can i do it?

Dualar36

Related Posts

A Physical Casino as Opposed to an Online Casino

Gambling at land-based casinos was, without a doubt, the only option available to gamblers in the early years of the casino industry. However, as technology advances, gamers have seen the…

เกมพนันสล็อตออนไลน์ เล่นได้ง่าย ได้เงินจริง กับเว็บพนันออนไลน์ UFABET MEMBER 

UFABET MEMBER  ซึ่งเป็นเว็บพนันออนไลน์ ที่สามารถที่จะเลือกที่ จะเล่นเกมพนันออนไลน์ ของเรานั้้นได้แบบง่าย เพราะเป็นเกมพนันออนไลน์ ที่มีความทันสมัย และเป็นเกมพนันออนไลน์ ที่สามารถที่จะเล่นได้แบบง่าย ซึ่งเว็บพนันออนไลน์ ของเรานั้นจัดได้ว่าเป็นเกมพนันออนไลน์ ที่สามารถที่จะเล่นได้ไม่หน้าเบื่อ ซึ่งเป็นเกมพนันออนไลน์ ที่สามารถที่จะจัดได้ว่าเป็นเกมพนันออนไลน์ ที่สามารถที่จะเล่นได้ง่าย และเป็นเกมพนันออนไลน์ ที่สามารถที่จะเล่นได้ผ่อนคลายมากที่สุด เพราะเว็บพนันออนไลน์ ของเรานั้นจัดได้ว่าเป็นเว็บพนันออนไลน์ ที่มีความพิเศษในเกมพนันสล็อตออนไลน์ เพราะเป็นเว็บพนันออนไลน์ UFABET MEMBER  ที่มีรูปแบบการเล่นที่ง่าย และเป็นเว็บพนันออนไลน์ ที่มีแจ็คพอตที่สามารถที่จะแตก ได้ง่ายที่สุดและเป็นเว็บพนันออนไลน์ ที่สามารถที่จะแตกได้บ่อยที่สุด ซึ่งเป็นเว็บพนันออนไลน์…

You Missed

Green Building with Steel: Evaluating the Environmental Benefits of Steel Structures

Green Building with Steel: Evaluating the Environmental Benefits of Steel Structures

The Modern Groom’s Guide: Lab Created Diamonds and the Perfect Wedding Band

The Modern Groom’s Guide: Lab Created Diamonds and the Perfect Wedding Band

Exploring Diamond Substitutes: A Sustainable and Affordable Alternative

Exploring Diamond Substitutes: A Sustainable and Affordable Alternative

The Truth About Loose Man-Made Diamonds and Lab-Grown Diamonds

  • By Dualar36
  • December 30, 2024
  • 125 views
Man-Made Diamonds