G
Guest
In my C# code, I want to SELECT rows first based upon one column's values and
then different rows based upon a different column's values. Using Query
Builder, I construct: SELECT * FROM myTable WHERE (Var1 = ?) OR (Var2 = ?)
Then in code:
MyDataAdapter.GetFillParameters()[0].Value = myValue;
MyDataAdapter.GetFillParameters()[1].Value = -9999;
There's got to be a better way? What can I do without having a second data
adapter with a different SELECT SQL? Is there anyway to update the SELECT
statement in the code to reference the other column's value?
then different rows based upon a different column's values. Using Query
Builder, I construct: SELECT * FROM myTable WHERE (Var1 = ?) OR (Var2 = ?)
Then in code:
MyDataAdapter.GetFillParameters()[0].Value = myValue;
MyDataAdapter.GetFillParameters()[1].Value = -9999;
There's got to be a better way? What can I do without having a second data
adapter with a different SELECT SQL? Is there anyway to update the SELECT
statement in the code to reference the other column's value?