码迷,mamicode.com
首页 > 数据库 > 详细

sql模糊查找like

时间:2015-11-09 17:17:21      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:

select * from table   where target_text like "3";

查找出来的都是target_text  为 3 的数据

 

select * from table   where target_text like "%3%";

查找出来的都是target_text  包含 3 的数据

sql模糊查找like

标签:

原文地址:http://www.cnblogs.com/huhuuu/p/4950304.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!