sql:模糊查询按精确度排序(原创)
时间:2021-07-01 10:21:17
帮助过:36人阅读
‘1‘ lvl,
* FROM [cnb_Sorts] where name
=‘.net‘
union
SELECT ‘2‘ lvl,
* FROM [cnb_Sorts] where name
like ‘.net_%‘
union
SELECT ‘3‘ lvl,
* FROM [cnb_Sorts] where name
like ‘_%.net%_‘
order by lvl
sql:模糊查询按精确度排序(原创)
标签: