如何在元编程实现搜索多个字符串

想请教一下如何在元编程中实现以下的语句来搜索字符串,参数可能有多个,例如为2个时(“新能源”、“光伏”)为:
where (index_full_name like "%新能源%" or index_full_name like "%光伏%")?

用where any index_full_name like:R ("%新能源%", "%光伏%") 提示:

The where clause [any(index_full_name like:R ["%新能源%","%光伏%"])] of a distributed/partitioned sql shouldn't use any aggregate or order-sensitive function.

请先 登录 后评论

1 个回答

wale

用row*函数:

rowOr( index_full_name like:R ["%新能源%", "%光伏%"])
请先 登录 后评论