是否支持多个表合并

lj(leftTable, rightTable, matchingCols, [rightMatchingCols])合并的是两个表,我有十几个表,每个表之间只有一列是不同的,如何一次性把所有的表合并在一起,而不是两两合并?

请先 登录 后评论

1 个回答

Juntao Wang

可以嵌套查询,例如:

t1=table(1..3 as id,1..3 as value1)
t2=table(1..3 as id,1..3 as value2)
t3=table(1..3 as id,1..3 as value3)
lj(lj(t1,t2,`id),t3,`id)
请先 登录 后评论