我有 2 个表货币和对以下字段,
货币
Currencies_ShortName
Currencies_Id(主键)
对
Pairs_ShortName
Currencies_Id_1 参考(货币)Currencies_Id
Currencies_Id_2 参考(货币)Currencies_Id
我想用 Currencies_ShortName 显示 Pairs_ShortName、Currencies_Id_1 和 Currencies_Id_2。
我试过了
Select a.Pairs_ShortName, a.Currencies_Id_1, a.Currencies_Id_2, b.Currencies_ShortName from Pairs a, Currencies b where a.Currencies_Id_1 = .Currencies_Id
但它只显示 Pairs_ShortName、Currencies_Id_1、Currencies_ShortName。
我想显示 Pairs_ShortName、Currencies_Id_1、Currencies_ShortName、Currencies_Id_2、Currencies_ShortName