标签:style blog color sp div c log r bs
--‘_‘匹配单个字符 --‘%‘匹配多个字符 SELECT * FROM Students WHERE Name LIKE ‘张%‘ --查询以‘张‘开头的记录 SELECT * FROM Students WHERE Name LIKE ‘%张‘ --查询以‘张‘结尾的记录 SELECT * FROM Students WHERE Name LIKE ‘张%三‘ --查询以‘张‘开头,‘三‘结尾的记录 SELECT * FROM Students WHERE Name LIKE ‘张%[^三]‘ --查询以‘张‘开头,不以‘三‘结尾的记录 SELECT * FROM Students WHERE Name LIKE ‘张_‘ --查询以‘张‘开头的记录 SELECT * FROM Students WHERE Name LIKE ‘张_三‘ --查询以‘张‘开头,‘三‘结尾的记录
标签:style blog color sp div c log r bs
原文地址:http://www.cnblogs.com/zwhFighting/p/4006850.html