當前位置: 首頁>>代碼示例 >>用法及示例精選 >>正文


erlang join(Relation1, I, Relation2, J)用法及代碼示例


join(Relation1, I, Relation2, J) -> Relation3
類型:
Relation1 = Relation2 = Relation3 = relation()
I = J = integer() >= 1

返回自然連接的關係的Relation1Relation2在坐標上IJ.

1> R1 = sofs:relation([{a,x,1},{b,y,2}]),
R2 = sofs:relation([{1,f,g},{1,h,i},{2,3,4}]),
J = sofs:join(R1, 3, R2, 1),
sofs:to_external(J).
[{a,x,1,f,g},{a,x,1,h,i},{b,y,2,3,4}]

相關用法


注:本文由純淨天空篩選整理自erlang.org大神的英文原創作品 join(Relation1, I, Relation2, J) -> Relation3。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。