private string sqlSelectLishiContent = string.Format("select * from tb_Plan where ExecuteTime>=@ExecuteTime1 and ExecuteTime<=@ExecuteTime2 and PlanContent like '%'+{0}+'%' order by ExecuteTime","@PlanContent");
like '%'+{0}+'%';
本文深入探讨了SQL查询中LIKE操作符的使用,通过具体实例展示了如何利用LIKE配合通配符实现高效的数据筛选。重点介绍了字符串匹配、模糊查询等高级用法,旨在帮助开发者掌握更灵活的查询技巧。
private string sqlSelectLishiContent = string.Format("select * from tb_Plan where ExecuteTime>=@ExecuteTime1 and ExecuteTime<=@ExecuteTime2 and PlanContent like '%'+{0}+'%' order by ExecuteTime","@PlanContent");
like '%'+{0}+'%';

被折叠的 条评论
为什么被折叠?
