For SQL Server:
var cmd = new SqlCommand("select fname from MEN where fnale = @query", myConnection); cmd.Parameters.AddWithValue("@query", "j'o");
All solutions to which you add your parameter to the sql string are incorrect (or at least at high risk) because they are vulgar for SQL Injection attacks.
You mentioned "access request", for Microsoft Access / Ole use the following syntax:
var cmd = new OleDbCommand("select fname from MEN where fnale = ?", myConnection); cmd.Parameters.AddWithValue("?", "j'o");
source share