I’m looking for the most efficient way to handle a mysql string statement in c#.
The following psuedocode example shows a @ string literal where I have 2 variables inside the string that need to be substituted in with the variable contents.
Is there an efficient and simple way in c# to do this?
string region = "northwest";
string market = "Canada";
string stm = @"
select distinct(position)
from plan
where region = 'region'
and market = 'market'
";
use parameters like: