3,490
社区成员
发帖
与我相关
我的任务
分享
select distinct DEPT.b from DEPT,NAME where NAME.a like '%'||DEPT.B||'%';
select distinct DEPT.b from DEPT,NAME where NAME.a like '%'||DEPT.B||'%';
[/quote]
这样查的话,如果NAME.A= 1234,DEPT.B=13的话,查不出来。可这也是我想要的结果,因为他们两个有共同的数字1,3存在。
请问,我该怎样写?