select content from (1 union 2)

解决方案 »

  1.   

    select content from table1
    union all
    select  content from table2
      

  2.   

    select content from table1
    union
    select  content from table2
    order by content desc
      

  3.   

    select content from table1 
    union
    select  content from table2
    where userid = 1
    order by content desc
      

  4.   

    select content from table1 
    union
    select  content from table2
    where userid = 1
    order by content,时间order by 就是排序
    加上 DESC 倒序
      

  5.   

    select content from
    (select userid,username,content,-ascii(content) as fff from content2
    union
    select userid,username,content ,ascii(content) as fff  from content1) A
    order by fff desc