SQL匹配度查詢

SELECT (IF(LOCATE('RK', SJXBSF), 2, 0)+IF(LOCATE('SJ', SJXBSF), 2, 0)) ppd,o.* FROM db_sjx  o WHERE  ( (SJXBSF LIKE '%RK%') blog OR (SJXBSF LIKE '%SJ%')  ) it ORDER BY ppd desc,LENGTH(SJXBSF) asc limi
相關文章
相關標籤/搜索