谁知道这个zodb的zsqlm ethod怎么写

"redame" <redame-9Onoh4P/[email protected]> Tue, 22 Mar 2005 00:15:04 +0800
Newsgroups gmane.comp.web.zope.chinese
Message-ID <005f01c52e31$25574a40$5801a8c0@JXD>
谁知道这个zodb的zsqlmethod怎么写 
张贴人: distinct 于 2005-03-21 21:56 
  a.. 引用 
  b.. 回复 
  c.. 
  d.. 

表1有数值字段a,表2有数值列表字段b,如何列出表1的a字段是表2的b字段的子集的记录?

或者有没有其他变通方法呢?

举例:

表1                                             表2

字段a                                           字段b

1                                                 2,3

2                                                 0,1

4                                                 5,6

3

选出记录:

字段a   字段b

1         0,1

2         2,3

3         2,3

_______________________________________________
zope-chinese list
[email protected]
http://zope.cn/mailman/listinfo/zope-chinese