请教mysql中:
selct * from customer where match(name) against ('**');
hibernate 中该如何写hql?
from customer as a where match(name) against ('**')?
好使不,还是要用fulltextseiion的?http://pricecome.com
selct * from customer where match(name) against ('**');
hibernate 中该如何写hql?
from customer as a where match(name) against ('**')?
好使不,还是要用fulltextseiion的?http://pricecome.com
而HQL呢?
要根据你的hibernate 反导生成的java的文件,如果你的名字是Customer,那你的hql就应该
from Customer where match(name) like '%*%'