Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

About SQL Query in VB.Net

$
0
0
Hello everybody,
I Want to use the SQL query given below
"SELECT * FROM tblEmployees WHERE (EmpName, EmpCity) = '" & txtNameAndCity.text & "'"

Where txtNameAndCity.text = Vishal, Delhi

Here I get the following error
Syntax error (comma) in query expression '((EmpName, EmpCity) = 'Vishal, Delhi')'.

Actually I have the name and city combined (not Different),
So what should be my SQL Query

Does any one know the answer

Thank You

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>