SELECT id, LEFT(Bbs_Title, 14) AS Bbs_Title, LEFT(User_name, 3)
      AS User_name, test1,test2,
      test3 = '内部论坛'
FROM (SELECT top 3 Bbs_MessageID AS id, LEFT(Bbs_Title, 14) AS Bbs_Title,
              LEFT(User_name, 3) AS User_name, Bbs_Message_date AS test1,
              ISTOP AS test2, test3 = '内部论坛'
        FROM Bbs_Message
        ORDER BY test2 desc,id DESC) a
UNION
SELECT id,  Bbs_Title,
               User_name, test1,  test2,
               test3 = '他山之十'
         FROM (SELECT top 3 ArticleID AS id, LEFT(Title, 14) AS Bbs_Title, LEFT(Editor, 3)
                       AS User_name, UpdateTime AS test1, ISzhiding AS test2,
                       test3 = '他山之十'
                 FROM Article
where FBLBID=''
                 ORDER BY test2 desc,id DESC) b

相关文章:

  • 2022-01-03
  • 2021-08-08
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-09-17
猜你喜欢
  • 2019-01-10
  • 2022-02-09
  • 2021-12-03
  • 2021-08-25
  • 2018-07-30
  • 2021-08-18
  • 2021-09-20
相关资源
相似解决方案