Can I write multiple constraints in sql when creating a table

Can I write multiple constraints in sql when creating a table
If “Yes”
,what then is the syntax?
So???

CREATE TABLE celebs(
 id INTEGER NOT NULL AND UNIQUE,
vasya cocat TEXT NOT NULL AND UNIQIE
);
1 Like

@5778543419 I think this is what you’re looking for:
CREATE TABLE x(
x VARCHAR2(20),
y NUMBER(2) NOT NULL,
CONSTRAINT fk_cons FOREIGN KEY(x) REFERENCES user_info(user_id),
CONSTRAINT null_cons CHECK(x IS NOT NULL)
)

Blockquote

It’s an example to the answer of your question. Yes, you can.