Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Constraints

8 views
Skip to first unread message

Dave

unread,
Jan 12, 2021, 11:21:58 AM1/12/21
to
What is the advantage to the CONSTRAINT clause vs constraints in the
table/field definition? For example:

CREATE TABLE "Phone Number" (
"Phone ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 0) NOT NULL
PRIMARY KEY,
"Patient ID" INTEGER NOT NULL,
"Number" VARCHAR(10),
"Description" VARCHAR(10),
CONSTRAINT FK_PAT_PHN FOREIGN KEY ("Patient ID") REFERENCES "Patient" ("ID
Number")
);

Seems to add no real functionality, but who knows.

Dave

Jerry Stuckle

unread,
Jan 12, 2021, 6:07:47 PM1/12/21
to
What storage engine are you using?

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstu...@attglobal.net
==================
0 new messages