I am writing a code where query is like:
select *from users where username!='ABC';
but when i write it in c# code as
string excludedname="abc";
string query="select *from users where username !='"+excludedname+"'";
its giving error in syntax what is the correct way to do this??