问题1:
count(C1 for all distinct)
或者
count(C1 for all distinct if(trim(C1)='','',C1))
本意是不数只含空格的字段,但没有null关键字,于是结果总是‘1’
怎么解决这个问题?
问题2:
怎么统计字符串列中特定字符串总数?
大虾帮忙!送分给你:D
...全文
21011打赏收藏
计算域问题……大虾帮忙
问题1: count(C1 for all distinct) 或者 count(C1 for all distinct if(trim(C1)='','',C1)) 本意是不数只含空格的字段,但没有null关键字,于是结果总是‘1’ 怎么解决这个问题? 问题2: 怎么统计字符串列中特定字符串总数? 大虾帮忙!送分给你:D
在DATAWINDOW的ROWS菜单中选择create group ,选择以C1建立分组group 1
count(if(len(trim(C1 for group 1))>0,1,0))
统计s1中有多少s2
long ll_len,ll_count,i
ll_len=len(s1)
for i=1 to ll_len
i=pos(s1,s2,i)
if i>0 then
ll_count=ll_count+1
i=i+1
else
if i=0 then
i=ll_len
end if
end if
next
messagebox("显示",s1+"中有 "+string(ll_count)+ " 个 "+s2)