mysql不支持子查询,你要实现上面的功能用联合查询,JOIN或UNION都可以实现

解决方案 »

  1.   

    select * from Doc where Did in (select Did from Publsih where Cid='33')
    改为
    select DOC.* from doc left join publsih on doc.did=publsih.did where publsih.cid='33'
      

  2.   

    晕倒楼主,MySQL不支持子查询啊
      

  3.   

    select Doc.* from Doc, Publsih where Doc.Did=Publsih.Did and Publsih.Cid='33'mysql在4.1以后才支持子查询,目前看来至少你的mysql是不支持的。
      

  4.   

    你的mysql的版本太低了。在3.23以后的版本里面就支持子查询。