📜  如何在 mysqldataadapter 的参数中赋值 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:32.461000             🧑  作者: Mango

代码示例1
da = new SqlDataAdapter("SELECT * FROM annotations WHERE annotation LIKE @search",
                        _mssqlCon.connection);
da.SelectCommand.Parameters.AddWithValue("@search","%" + txtSearch.Text + "%");