如何使通配符在 SQL Server 报告服务中的类似运算符中工作?

编程入门 行业动态 更新时间:2024-10-23 04:45:04
本文介绍了如何使通配符在 SQL Server 报告服务中的类似运算符中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用 like 运算符添加了过滤器表达式.我在值字段中输入什么?我的参数名为@test,我希望过滤器的功能类似于 SQL 中的 %@test%.我希望它表现得像 %@test% 这样我就可以通过 '' 来获取查询的所有值.

I have added a filter expression using the like operator. What do I put in the value field? my parameter is named @test and I'd like the filter to function as a like %@test% would in SQL. I want it to act like %@test% so I can pass '' to get all values for the query.

推荐答案

我通过添加带有 like 运算符的过滤器表达式并将值设置为:

I got this to work by adding a filter expression with a like operator and setting the value to this:

="*" + Parameters!Roles.Value + "*"

要获取我传递的所有值 ''.

To get all values I pass ''.

更多推荐

如何使通配符在 SQL Server 报告服务中的类似运算符中工作?

本文发布于:2023-10-07 14:18:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469619.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:通配符   运算符   类似   报告   工作

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!