SQL Server另类写法代替Like语句
2017-02-06
21
SQL Server另类写法代替Like语句2011-11-06提到Like语句大家都很熟悉,比如查找用户名包含有"c"的所有用户, 我们可以用use mydatabase select * from table1 where username like"%c%"以下是完成上面功能的另一种写法:use mydatabaseselect * from table1 where charindex("c",username)>...