How could I use a string variable in a SQL string?
For example:
string listedCity;
"Select FName, LName, City, State, Zip, Address, Phone where City = " + listedCity + ");
But that is not correct syntax. What would be the correct syntax?
String Variable in A SQL String
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jan 29, 2013, 5:46 AM EST