table1      table2     table3
字段         字段       字段
 你          是的       111
 我          不是       222
 他          NO         333这样几个没有关联的表.怎么用一条语句得到3个表字段的值

解决方案 »

  1.   

    union all 这样不行
    coolingpipe(冷箫轻笛 还在吗
      

  2.   

    news
    id    title               addtime   content
    1     趋势中国研发中心    ...       ...
    2     .NET程序员          ...       ...idea
    id    title               addtime   content
    1     发出回复            ...       ...
    2     重写                ...       ...就这样很多表 把所有表的 title,content 查询出来  然后数据绑定
      

  3.   

    那union all为什么不可以呢?select title,content from news
    union all
    select title,content from idea--或者需要这样写?select title,content
    from
    (
    select title,content from news
    union all
    select title,content from idea
    )t
      

  4.   

    select * from news union all select * from idea?
      

  5.   

    select title,content  
    from news
    union all
    select title,content  
    from idea 
    union all
    ...
      

  6.   

    select title,content  
    from news
    union all
    select title,content  
    from idea 
    union all
    ...