请问模糊查询时怎样用参数呢? SqlCommand cmdSelect = new SqlCommand("select id,title,hits from news where title like '%@selStr%'",conPubs)这样查不到数据,应该怎样写呢??谢谢!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以这样写:SqlCommand cmdSelect = new SqlCommand("select id,title,hits from news where title like @selStr",conPubs)cmdSelect.Parameters.Add(new SqlParameter("selStr","%title%")); 如何从指定行开始读excel C# 如何实现程序每隔一段时间运行一下程序,需传参 怎么在dll运算的进程中,在主界面显示进度条。 请问不用timer如何计时? repeater控件问题 如果在vs2005的main函数中向主窗体传值 c#网络高手请进,c/s模式的 身份验证和信息传递,用Socket类编程好,还是用remote [求助]请问怎样得到当前操作系统的信息? 入门级基本语法问题 请教个问题:用什么工具可以开发在大部分手机上使用的软件? 流动条怎样响应鼠标滚轮事件? 新手50分求助,急!!!急~~~~~~
SqlCommand cmdSelect = new SqlCommand("select id,title,hits from news where title like @selStr",conPubs)
cmdSelect.Parameters.Add(new SqlParameter("selStr","%title%"));