这样的sql语句有何问题?我执行的时候消耗的老是要我增加数据库空间和system段
统计#L1中的每个syscode1下的usercode的个数,要求这些usercode不在#L2的相关syscode1中,
select #L1.syscode1, count(distinct #L1.usercode) as number
into #L3
from #L1,#L2
where #L1.syscode1=#L2.syscode1
and #L1.usercode not in(select usercode from #L2)
group by #L1.syscode1