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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jan 29, 2013, 10:46 AM