SQL中代替LIKE的另一种写法
比如查找用户名包含有"c"的所有用户, 可以用 use mydatabase select * from table1 where username like%c%" 下面是完成上面功能的另一种写法: use mydatabase select * from table1 where charindex(c,username)>0 这种方法理论上比上一种方法多了一个判断语句,即>0, 但这个
转载
2004-10-19 18:48:00 ·
799 阅读 ·
0 评论