AK 的个人资料梦醒有酒,酒醒无梦照片日志列表 工具 帮助
10月26日

发个小技术贴

google了半天,发现一帮人问,但没人贴解决方法,结果自己想出来一个。

the question is: there is no instr(x,y) function in sqlite, and for like(x,y), there is also no concat() function to let you add '%' around the x string.
of course you can write your own functions, but there is actually a tricky way to implement instr(x,y).
instr(x,y) is the same to like(replace(quote(x),'''','%'),y)

tag: sqlite, instr

hope this helps 哈哈

______________

硕士论文狂修改中
10月2日

“学objective C,送mac pro” 活动

研究所发了个mac,上来显摆一下。
其实没啥可显摆的,只说明了我以后得更拼命干活了,
道理和“收人钱财,替人消灾”是一样一样的。
唉男人要奋斗啊