SSIS 2008 - 如何在 SSIS 派生列工具中进行正则表达式搜索
如何在 SSIS 派生列工具中执行正则表达式
,即
我有格式为 XXXNNNN 的字符串,并且我想使用 SSIS 派生列工具过滤那些不采用此格式的字符串。
即
ABC1234 可以,
ABCDEFG 则不行。
How do I do a regular expression in an SSIS Derived Column Tool
i.e.
I have string in the format XXXNNNN and I want to filter our those strings not in this format using an SSIS Derived Column Tool.
i.e
ABC1234 is ok
ABCDEFG is not.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
派生列转换不支持正则表达式,因此您必须查看其他一些选项:
SUBSTRING
和CODEPOINT
函数检查每个值是否在您期望的范围内(请参阅 函数参考)。但这可能难以阅读和维护,并且可能根本不实用,具体取决于您的数据的样子。The Derived Column transformation doesn't support regular expressions, so you'll have to look at some other options:
SUBSTRING
andCODEPOINT
functions to check that each one is in the range you expect (see the function reference). But that's probably awkward to read and maintain, and may not be practical at all depending on what your data looks like.