CONSTRAINT [pk_SwitchboardItems]

F

Frank Situmorang

Helllo:

In the table structure of the following, can anyone explain what is the
meaning of :
CONSTRAINT [pk_SwitchboardItems]?

CREATE TABLE [Switchboard Items] (
[SwitchboardID] LONG NOT NULL,
[ItemNumber] SMALLINT NOT NULL,
[Language] TEXT(50) NOT NULL,
[ItemText] TEXT(255) NOT NULL,
[Command] SMALLINT,
[Argument] TEXT(255) ,
CONSTRAINT [pk_SwitchboardItems]
PRIMARY KEY ([SwitchboardID], [ItemNumber], [Language])
);


Thanks very much
 
R

RoyVidar

Frank said:
Helllo:

In the table structure of the following, can anyone explain what is
the meaning of :
CONSTRAINT [pk_SwitchboardItems]?

CREATE TABLE [Switchboard Items] (
[SwitchboardID] LONG NOT NULL,
[ItemNumber] SMALLINT NOT NULL,
[Language] TEXT(50) NOT NULL,
[ItemText] TEXT(255) NOT NULL,
[Command] SMALLINT,
[Argument] TEXT(255) ,
CONSTRAINT [pk_SwitchboardItems]
PRIMARY KEY ([SwitchboardID], [ItemNumber], [Language])
);


Thanks very much

The last two lines,

CONSTRAINT [pk_SwitchboardItems]
PRIMARY KEY ([SwitchboardID], [ItemNumber], [Language])

creates a primary key index called pk_SwitchboardItems consisting
of the fields SwitchboardID, ItemNumber and Language

For more info, see for instance
http://office.microsoft.com/en-us/access/HP010322141033.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top