1

I got the following query:

select * 
  from table1 
 WHERE contains(column1, 'FUZZY(:parameter1, 50,, weight)', 1) > 0

Parameter1 is a text parameter.

The issue is the query that gets executed is this:

select * 
  from table1 
 WHERE contains(column1, 'FUZZY('value', 50,, weight)', 1) > 0

Because it's a text parameter, I guess for some reason it puts the value in quotes. How do i fix this? This is on oracle 11g

2
  • How are you running this query? Commented Oct 19, 2011 at 15:43
  • Using .NET: codeusing(OracleCommand command = OracleCommand(conn)) { command.Parameters.Add(":parameter1", txtValue.Text); } I made sure the txtValue does not contain quotations. It simply contains the value value. Commented Oct 19, 2011 at 15:49

1 Answer 1

1

You can do:

String param = "FUZZY("+txtValue.Text+", 50,, weight)";

And send it as parameter

select * from table1 WHERE contains(column1, :param, 1) > 0
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.