或者叫,分词检索数据库
$res = MysqL_query("select * from peter where id like '%中草药%' and '%6%'"); //这样写是报错的;
$res = MysqL_query("select * from peter where id like '%中草药%' or '%6%'"); //而这样写是正确的;奇怪~
$res = MysqL_query("select * from peter where id like '%中草药%' and id like '%6%'"); //这样写是正确的;
$res = MysqL_query("select * from peter where id like '%中草药%' or id like '%6%'"); //这样写都是正确的;