select Memo from table1,table2 .........where Memo='"+关键字+"'";
-------- ---------
这两个Memo没有指定是哪个表的字段,这是错误的。
这种查询因为是要将多个表中数据联合,所以可以用Union将多个查询结果连接起来
strSQL="select id,author,memo from table1 where memo like '*" & keyword & "*' union select id,author,memo from table2 where memo like '*" & keyword & "*'"
[此贴子已经被作者于2004-06-14 10:40:16编辑过]