有sql 语句 大致是下面这样select * from tablea where name like %s select * from tablea where id = s %s 和 s 是 参数,要替换成:张三select * from tablea where name like '%张三' select * from tablea where id = '张三'
解决方案 »
- 关于C#的一个疑问
- .net提示错误“调用 Send 方法之前必须设置 Path 属性。”
- Combobox的一个问题
- WinForm中DataTable导出为Excel后,如何获取Excel文件地址?
- 真心求职,传参问题!
- 关于c#调用VC动态库的问题
- 错误 1 未能找到类型或命名空间名称“video”(是否缺少 using 指令或程序集引用?)
- 请问怎么把xml倒入数据库中呢?
- 国庆回家带点什么呢?
- 如何添加WindowsControlLibrary的自有属性。并且在添加到解决方案中时。该属性能体现在属性工具栏中。。。。
- winform如何使用AD验证进行登录。。。
- 关于 shape line覆盖图形的
string s = "select * from tablea where id = s ";
Regex reg = new Regex(@"s[\W]");
s = reg.Replace(s, "张三");
Regex reg = new Regex(@"(%?)\bs\b");
string result = reg.Replace(test, "'$1张三'");
richTextBox2.Text = result;