ksfok
asked on
VB.NET/C# equivalent for SQL T-SQL syntax
Given the following SQLcommend Text as sample:
"select * from customers where cust_id like '%" + textbox1.text.tostring.tri m +"&'"
What's the VB.NET/C# equivalent for it as below:
Dim CustID As String
if CustID ??? textbox1.text.tostring.tri m
??? is the code you fill in for the T-SQL "like".
Thanks.
"select * from customers where cust_id like '%" + textbox1.text.tostring.tri
What's the VB.NET/C# equivalent for it as below:
Dim CustID As String
if CustID ??? textbox1.text.tostring.tri
??? is the code you fill in for the T-SQL "like".
Thanks.
What is it you are trying to accomplish ?
ASKER
Look for a string that contains a particular string.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
What about:
textToSearch.contains(find This)
?
textToSearch.contains(find
?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.