G
Guest
I don't see how the following code snippet from page 100 in ADO.NET core reference creates the primary key out of the ID field
CREATE TABLE NewTable (NewTableID int NOT NUL
CONSTRAINT PK_NewTable PRIMARY KEY
OtherField varchar(32)
Its not clear to me whether the field is ID or NewTableID. Its also not clear how the constraint statement knows which field is referred to. Is it just tht the constraint statement comes after the NewTableID declaration
polynomial5d
CREATE TABLE NewTable (NewTableID int NOT NUL
CONSTRAINT PK_NewTable PRIMARY KEY
OtherField varchar(32)
Its not clear to me whether the field is ID or NewTableID. Its also not clear how the constraint statement knows which field is referred to. Is it just tht the constraint statement comes after the NewTableID declaration
polynomial5d