The first argument is the substring, the second argument is the search string, and an optional starting position can be supplied as a third argument.
第一个参数是子字符串,第二个参数是搜索字符串,可选的起始位置可以提供作为第三个参数。
LOCATE LOCATE (' beach ', p.description) Returns the starting location for the first occurrence of a substring in a search string, or zero if the substring isn't found.
LOCATE LOCATE (' beach ',p. d escription)返回一个子字符串在搜索字符串中第一次出现的起始位置,如果没找到子字符串,则返回0。
The second command, /usr/local/bin/search --config /usr/local/etc/sphinx.conf wind, found the substring wind in two part descriptions.
第二条命令 /usr/local/bin/search --config /usr/local/etc/sphinx.conf wind 在两个零件描述中找到了子字符串 wind。
应用推荐