Re: 谁知 道这个zodb的zsq lm ethod怎么写
Zoom Quiet <[email protected]> Tue, 22 Mar 2005 10:48:24 +0800
| Newsgroups | gmane.comp.web.zope.chinese |
|---|---|
| Message-ID | <[email protected]> |
最直接的,分别选出 表 1,2 的有效数据,
然后
for item in list1a:
if item in list2b:
desult.append(item)
else:
pass
就好
On Tue, 22 Mar 2005 00:15:04 +0800, redame <redame-9Onoh4P/[email protected]> wrote:
>
> 谁知道这个zodb的zsqlmethod怎么写
> 张贴人: distinct 于 2005-03-21 21:56
>
>
>
> 引用
> 回复
>
>
>
>
>
>
>
> 表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
>
>
>
--
[Time is unimportant, only life important!]
_______________________________________________
zope-chinese list
[email protected]
http://zope.cn/mailman/listinfo/zope-chinese