db2 中如何使用select 语句创建临时表?
rt 可以用类似写法:with actlist as
(select distinct his.ACCOUNT_IDfrom tabnamewhere date(his.trxDate) between '2008-1-1' and '2008-1-31' )
select count(*) from tabname1 c, account a, actlist l where c.CUSTOMERTYPE='PERSON' and a.CUSTOMER_ID = c.ID and a.id = l.account_id 谢谢!
页:
[1]