select * from eip_faq left join eip_faq_kindtype on fquestiontype=eip_faq_kindtype.fid如果eip_faq_kindtype左連結eip_faq之前.我需要對eip_faq的數據進行篩選.比如字段isshow bit 類型
我想在eip_faq里帶出所有isshow字段都是為true的數據並使用eip_faq_kindtype左連結之.

解决方案 »

  1.   

    select * from(select * from eip_faq where isshow='true')a left join eip_faq_kindtype on fquestiontype=eip_faq_kindtype.fid
      

  2.   

    select * from(select * from eip_faq where isshow='true')a left join eip_faq_kindtype on a.fquestiontype=eip_faq_kindtype.fid楼上的快是快。。
      

  3.   

    select a.*,eip_faq_kindtype,* from eip_faq a left join eip_faq_kindtype on a.fquestiontype=eip_faq_kindtype.fid  where  a.isshow='true'  不知道 这样可不可以. 一般我不太用子查询
      

  4.   

    select a.*,eip_faq_kindtype.* from eip_faq a left join eip_faq_kindtype on a.fquestiontype=eip_faq_kindtype.fid  where  a.isshow='true'
      

  5.   

    a.isshow='true',这个写法正确吗?我想应该是a.isshow=1