字符串函数comapre部分匹配.. [英] String Functions to comapre partially match..

查看:188
本文介绍了字符串函数comapre部分匹配..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

字符串函数

例如: -

我正在发送输入,例如

String Functions
eg:-
I''m sending input like

1.asia
2.africa
3.asia2
4.asia14662
5.europe
6.asianet



在这5个输入中,我想要所有亚洲的输出。

i不知道如何将所有输入与关键字亚洲进行比较

输出i想要1,3,4,6。我应该使用哪种条件来获取SSIS

C#scripiting


among these 5 inputs i want all the asia''s output.
i don''t know how to compare all the input''s with keyword asia
the outputs i want 1,3,4,6. which condition should i use to get this in SSIS
C# scripiting

推荐答案

我对SSIS不太熟悉



有一种叫做FINDSTRING的方法。您可以使用



http:// msdn.microsoft.com/en-us/library/ms141748.aspx [ ^ ]



检查以下主题,这可能对你有所帮助



http://social.msdn.microsoft .com /论坛/ en / sqlintegrationservices / thread / 993285a5-72e5-49fc-a61c-e45bc1a98b47 [ ^ ]



http://social.msdn.microsoft.com/Forums/zh/sqlintegrationservices/thread/ 55f15ddc-67c9-4007-8d27- 7358d64ae95e [ ^ ]
I am not much familiar with SSIS

There is a method called "FINDSTRING". you may use that

http://msdn.microsoft.com/en-us/library/ms141748.aspx[^]

check the following threads, that may be help you

http://social.msdn.microsoft.com/Forums/en/sqlintegrationservices/thread/993285a5-72e5-49fc-a61c-e45bc1a98b47[^]

http://social.msdn.microsoft.com/Forums/zh/sqlintegrationservices/thread/55f15ddc-67c9-4007-8d27-7358d64ae95e[^]


您好Raju可以使用 StartsWith 字符串方法



Hi Raju you can use StartsWith method of string

string Temp = yourString.StartsWith("asia",false);

(false用于忽略大小写)。



希望这个帮助。

(false is used to ignore case).

Hope this help.


这篇关于字符串函数comapre部分匹配..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆