比如查找用户名包含有"c"的所有用户, 可以用use mydatabaseselect * from table1 where username like’%c%"下面是完成上面功能的另一种写法:use mydatabaseselect * from table1 where charindex(’c’,username)>0这种方法理论上比上一种方法多了一个判断语句,即>0, 但这个判断过程是最快的, 我想信80%以上的运...
http://www.jb51.net//article/5504.htm
共有:1/10,当前1/1页
[首页] [上一页]
1
[下一页] [尾页]
转到:
