union是产生的两个记录集(字段要一样的)并在一起,成为一个新的记录集
SelectA.Field1,B.field2fromTable1AinnerjoinTable2Bona.Field2=b.Field2where..........
SelectField1fromTable1unionSelectField2fromtable2
方案二、
select a.id,a.title,b.content from 表格1 as a,表格2 as b where a.id=b.id order by a.id
rs("id")
rs("title")
rs("content")
另:
新建一个表xxx
sql="insertintoxxxselectP.id,P.title,M.contentfrompicturePinnerjoinmiaoshuMonP.id=M.id"
conn.executesql