我有一個查詢,獲取使用LIKEMysql的如訂單卜精確匹配
SELECT * FROM table WHERE column LIKE '%$search%'
信息現在,如果我搜索「你好」,它將返回類似
Oh hello there
Hello there
Hello there how are you
但我想先按完全匹配排序,所以它應該像
Hello there
Hello there how are you
Oh hello there
在上面的確切匹配和開始時的確切匹配這
不返回任何東西,嗯 – user2458791
不返回任何東西?檢查我的答案,並看看演示 –
我做了,我改變了你好我的變量和改變列名稱,它不會返回任何東西 – user2458791