由于客户可能有多个电话号码,我如何在 TelephoneNo 上插入多个值?
CREATE TABLE Telephone
(TelephoneID tinyint Primary key,
TelephoneNo int)
和..
CREATE TABLE CLIENT
(ClientID smallint Primary key,
FName varchar(25),
LName varchar(25),
HomeAddress varchar(50),
TelephoneID tinyint foreign key references Telephone(TelephoneID))
这样就可以这样查看
ClientID | FName | LName | HomeAddress | TelephoneID
C-01 Harry Sendon 1333 Cali. 1,2
C-02 Pierre Ferrer 1515 LasV. 3
TelephoneID | Telephone
1 7894561
2 8945612
3 7569696
这就是我能解释的。xD