有没有人有一个只匹配整个单词的LIKE模式?我没有使用SQL全文搜索,因为它不可用。我不认为简单的关键字搜索是必要的,而LIKE应该能够做到这一点。但是,如果有人针对LIKE模式测试过全文搜索的性能,我会很感兴趣的。编辑:
我到了这个阶段,但它不匹配作为单词边界的字符串的开始/结束。where DealTitle l
return Session.CreateQuery("from Player p where p.Sex = :teamSex and p.Visible and p.Id not in (select pit.Playerfrom PlayerInTeam as pit join pit.Roster as roster join roster.Team as team where team = :teamId)")如果我在数据库浏览器(SQLite资源管理器)中运行NH生成的SQL</em