2015-06-04 74 views
0

我能找到mysql上的搜索,如下面的例子;像sphinxql替換()函數

記錄是:I'Histoire 查詢搜索:IHistoire

這個sql查詢,我可以'字符串能夠發現字。

選擇 kitap_id,kitap_Adi,turu,fiyati,kargo,satici,yazari,yayinevi,yayin_Yili,yayin_Yeri,kucuk_Re SIM,kondisyon FROM kitaplar WHERE onay = '1' 和(REPLACE(kitap_Adi, '' '', '')像 '%IHistoire%'或yazari'%IHistoire%')order by fiyati asc LIMIT 0,5;

但在獅身人面像我該怎麼做?查詢下面我找到匹配我想也找到與'。

從TEST1選擇 kitap_id,kitap_Adi,turu,fiyati,kargo,satici,yazari,yayinevi,yayin_Yili,yayin_Yeri,kucuk_Re SIM,kondisyon其中匹配( '@(kitap_Adi,yazari)(IHistoire)')和onay = 1 order by kitap_Adi asc,fiyati asc LIMIT 0,5 \ G;

我該如何做到這一點在sphinxql中替換(),我可以做到在MySQL端BU如何做到獅身人面一方?

感謝

回答