05月 16, 2008 @ 5:44 pm · Filed under mysql
模电课上,看了mysql的索引,知道什么是唯一,常规,全文索引,以前只知道一个主键索引,有学到了一点。 select * from table where match(content) against('+key1 -key2' in boolean mode);
select * from table where match(content) against('+key1 -key2' in boolean mode);
在content字段中查找含有key1而不含key2的记录
永久链接 评论