实现方式 应该有很多种吧?我还是小菜, 只想的到 通过对每个表创建实例 和 方法来实现哦,  能不能归并到一个方法呢?  比如我现在的 表有  [t1]  [t2]  [t3] , 分别有[t1.a1]  [t1.b1] [t2.a2] [t2.b2] [t3.a3]  [t3.b3] 字段我要实现关键字 在和以上六个字段任意匹配  好比  like  '%物流%'    

解决方案 »

  1.   

    select logwindows.log_tit , logwindows.log_con  from logwindows  where logwindows.log_tit like '%物流%' or logwindows.log_con like '%物流%' union 
    select news.n_title, news.n_con from news where news.n_title like '%物流%';刚刚用了 这个语句 试验了一下  好像是可以的,  这样子写可以吗?   大虾给个答复~
      

  2.   

    这个搜索对外开发的吗?
    对外的就不要用like,不然你会死得很惨