select a
use tab1
index on key to indexfilename1
select b
use tab2
index on key to indexfilename2
set relation to key into tab1 in tab2
replace fieldname with tab1.fieldname in tab2 for found("tab1")
本文介绍了一种使用SELECT命令从两个关联的表中进行数据选择的方法。首先选择了表tab1,并为该表创建了索引indexfilename1;接着选择了表tab2,并创建了索引indexfilename2。之后设置表tab1与tab2之间的关系,并通过特定字段实现数据查找。
select a
use tab1
index on key to indexfilename1
select b
use tab2
index on key to indexfilename2
set relation to key into tab1 in tab2
replace fieldname with tab1.fieldname in tab2 for found("tab1")

被折叠的 条评论
为什么被折叠?