-2
我只是想在表中插入數據時限制player_position中的值。如何使用OR條件來定義檢查約束
Create Table PLAYERS
(Player_Id NUMBER(4),Player_First_Name VARCHAR(15),Player_Last_Name VARCHAR(15),Player_Team_Code CHAR(3),
Player_Position CHAR(2),
CONSTRAINT Player_Position_check CHECK (Player_position = 'QB' or 'RB' or 'WR' or 'DB' or 'LB' or 'OT' or 'DT' or 'PT' or 'KI')
CONSTRAINT Player_Id_PK PRIMARY KEY (Player_Id));
這段代碼有什麼問題?