I want to optimize my query to return result either user insert New York
or NEW YORK
or new york
I have around 10000 record in db
and some record start with upper later some with lower latter, and my query doesnt return result if I insert like New York
.
[WebMethod]
public string GetAkontasByMjesto(string Mjesto)
{
OracleConnection conn = new OracleConnection("DATA SOURCE=test-1:1521/fba;USER ID=test;PASSWORD=test");
OracleDataAdapter dr = new OracleDataAdapter("Select * from AKONTAS where MJESTO='" + Mjesto + "'", conn);
DataSet ds = new DataSet();
ds.Tables.Add("AKONTAS");
dr.Fill(ds, "AKONTAS");
DataTable tt = ds.Tables[0];
return ds.GetXml();
}
Is there any solution for this problem ?