最近正在对SQL Server所有内置函数进行一个通参(呵呵,自己造的词,其实就是从头到尾过一遍),进行到difference函数的时候简单的在IDE中进行了小小的尝试,目标代码如下:1 declare @input nvarchar(100)='shenme'2 declare @targetItem nvarchar(100)='ShenMa收藏'3 select DIFFERENCE(@input,@targetItem)as result返回值如下:result-----------4(1 行受影响)返回值为4,表明用户输入的值与进行比较的值是完全匹配的 Read More
posted @ 2012-03-21 13:08 Lison Liou Views(750) Comments(0) Diggs(0) Edit