access数据库"A"表中"a字段",与"B"表中"b字段"进行关联,想查找"a字段"中包含"b字段"的记录,如何查询??

2024-11-09 12:51:18
推荐回答(3个)
回答(1):

instr('abc','b')这个写法
select A.a from A WHERE EXISTS (SELECT 1 FROM B WHERE instr(A.a,B.b) > 0)

回答(2):

SELECT * FROM A WHERE A.a IN (SELECT B.b FROM B)

回答(3):

SELECT A.a from A WHERE A.a IN B.b