I would like to know how to set an insert pattern in a column in SQL.
Example:
CREATE TABLE XPTO(
ID INT IDENTITY(1,1),
NOME VARCHAR(100) NOT NULL,
ATIVO CHAR(1) NOT NULL)
In this case, I want to limit the ACTIVE field to only receive values of 'S' or 'N'.
Thank you