Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 gosu 加入下面的两个表 .. 这是来自 Contact Manager (GW Training App)
1 ABContact 2银行账户
下面的 SQL 可用于查找某个特定联系人持有的所有帐户
select b.accountnumber from ABContact a, BankAccount b where a.id=b.contactid and a.id='123'
请在 Gosu 中编写相同的查询
查询是这样的
uses gw.api.database.Query var account: BankAccount var query = Query.make(ABContact).join("ID", BankAccount, "Contact").compare(BankAccount#ID, Equals, account.ID)