如何在ForexRate表中为RateFrom(FK)插入记录&在表中自动插入货币时的Rateto(FK)?
Create table Currency
(
CurrencyID int Identity(1,1) Not Null,
CurrencyName Varchar(50),
CurrencyCode Varchar(20) Primary Key Not Null
);
Create table ForexRate
(
RateFrom varchar(20) Foreign key References Currency(CurrencyCode),
Rateto varchar(20) Foreign key References Currency(CurrencyCode),
SellRate money,
BuyRate money
);