Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Crystal reports Crystal报表中的IN运算符_Crystal Reports - Fatal编程技术网

Crystal reports Crystal报表中的IN运算符

Crystal reports Crystal报表中的IN运算符,crystal-reports,Crystal Reports,我试图通过使用IN操作符来过滤crystal报表,就像我们在SQL中所做的那样。在crystal report中,我试着用与此类似的方式来做 ('ABC','DEF')中的{i_nonfcincdettst.TeamCode})但是它给了我错误,“The”是错误的“ 你知道如何在crystal report中做到这一点吗?是的,使用括号而不是括号 ({i_NonPfcIncDetStt.TeamCode} IN ['ABC','DEF']) perhaps? 为了方便起见,您可以将to匹配字符

我试图通过使用IN操作符来过滤crystal报表,就像我们在SQL中所做的那样。在crystal report中,我试着用与此类似的方式来做 ('ABC','DEF')中的{i_nonfcincdettst.TeamCode})但是它给了我错误,“The”是错误的“


你知道如何在crystal report中做到这一点吗?

是的,使用括号而不是括号

({i_NonPfcIncDetStt.TeamCode} IN ['ABC','DEF']) perhaps?
为了方便起见,您可以将to匹配字符串放在带分隔符的字符串变量中,然后使用SPLIT

@toMatchList
"ABC,DEF,MDV,HLV,ILY,TLA,OMG,LOL,GOD,ETC"

要想获得更多的乐趣,您可以进行模式匹配。

这也适用于:

Month({Person.Date}) IN [7,8]
Month({Person.Date}) IN [7,8]