soundex可以在mysql的列中使用吗?(can soundex be used on portion of a column in mysql?)
是否可以使用soundex比较列的一部分与搜索词? 例如,如果用户搜索“fivethreeree” - 它会发现“金色金属Nirve体育五十三巡洋舰”。 我试着将soundex与定位功能结合起来,但遇到了一个错误。 这是我的PHP代码:
$soundex = soundex($keyword); $soundexPrefix = substr($soundex, 0, 2); $sql = "SELECT name ". "FROM products WHERE SOUNDEX(LOCATE('$keyword', name)) LIKE '%$soundexPrefix%'";
Is it possible to use soundex to compare portion of a column with search term? For example if a user searches "fiftythree" - it will find "Nirve Sports Fifty-Three Cruiser in Gold Metallic". I tried combining soundex with locate function but got an error. Here is my php code:
$soundex = soundex($keyword); $soundexPrefix = substr($soundex, 0, 2); $sql = "SELECT name ". "FROM products WHERE SOUNDEX(LOCATE('$keyword', name)) LIKE '%$soundexPrefix%'";
原文:https://stackoverflow.com/questions/9952959
更新时间:2023-11-19 21:11
最满意答案
您需要将以下内容添加到iFrame中。 对于旧版浏览器,只能用CSS来完成它:
frameborder="0"
You need to add the following to the iFrame. It's can't be done with just CSS for older browsers:
frameborder="0"
相关问答
更多-
OpenID和Iframes(OpenID and Iframes)[2022-03-12]
尝试在弹出式窗口(window.open或)中运行您的登录。 这种方式window.top ==窗口,使网站不会iframed。 然后,当你回到你自己的身边时,你可以发送一个auth cookie和一个