select id ,ietm_name from pkt_item where match(item_name) against('+good +boy ' in boolean mode)
和
select id ,ietm_name from (select id ,ietm_name from pkt_item where match(item_name) against('good +boy ')) as temp where item_name like 'good' and like 'boy'
哪个效率更高?????????????????????????????????
和
select id ,ietm_name from (select id ,ietm_name from pkt_item where match(item_name) against('good +boy ')) as temp where item_name like 'good' and like 'boy'
哪个效率更高?????????????????????????????????
解决方案 »
- 有高并发写数据库的需求,求知道
- 用MYSQL BACKUP工具备份出来的SQL,如何还原? 用MYSQL BACKUP工具备份出来的SQL,如何还原? 用MYSQL BACKUP工具备份
- 求一MYSQL语句
- mysql 中 怎样删除 表mytable address字段中 含有‘机械’的记录啊 ?
- 有批处理文件启动mysql
- 怪! mysql error: Table 'template' is read only
- 有关mysql中的sql语法的问题,请高手指点!
- 没有比这更简单的了,一句select语句怎么写,
- 求一个有全国大学名称和学院信息的数据字典表
- MYSQL启用日志不成功
- 问个mysql_stmt_execute的问题。 执行后直接core dump。 不知道什么原因。
- shell 操作mysql
第二句应该是 select id ,ietm_name from (select id ,ietm_name from pkt_item where match(item_name) against('good boy ')) as temp where item_name like '%good%' and like '%boy%'