我在java:
中创建的查询(mysql)中有以下摘录queryGeral.append("FROM product p, fabricante_product fp, fabricante f, extensao e, product_autor pa ")
.append(" WHERE ")
.append("a.nome like ? AND ")
.append("p.cod_material = pa.cod_material AND ")
.append("f.fabricante = fp.fabricante AND ")
.append("p.cod_material = fp.cod_material AND ")
.append("e.id_extensao = p.id_extensao ");
当我把它放在上面的代码中时,需要把MATCH
函数(也许是AGAINST
)用来详细说明我的研究,mysql说的缺失参数,我试着在下面这样做,但不起作用:
queryGeral.append("FROM product p, fabricante_product fp, fabricante f, extensao e, product_autor pa ")
.append(" WHERE ")
.append("MATCH p.name AND ")
.append("a.nome like ? AND ")
.append("p.cod_material = pa.cod_material AND ")
.append("f.fabricante = fp.fabricante AND ")
.append("p.cod_material = fp.cod_material AND ")
.append("e.id_extensao = p.id_extensao ");
我需要将函数放在此查询MATCH
..