create VIEW view_comment
 as 

(select w.idStr,w.content,w.userID,w.wei_id,w.createTime,'01' as type FROM wei_comment_comment w)
UNION ALL
(select r.idStr,r.content,r.userID,r.reviewID wei_id,r.createTime,'07' as type from review_comment r )
UNION ALL
(select i.idStr,i.content,i.userID,i.insResRepID wei_id,i.createTime,'05' as type from institution_res_report_comment i)
UNION ALL
(select n.idStr,n.content,n.usrID userID,n.noticeID wei_id,n.createTime,'06' as type  from notice_comment n)
UNION ALL
(select f.idStr,f.content,f.usrID userID,f.firstDiscloseID wei_id,f.createTime,'08' as type  from first_disclose_comment f)

 

相关文章:

  • 2022-12-23
  • 2021-05-16
  • 2021-09-06
  • 2021-09-14
  • 2022-12-23
  • 2021-09-22
  • 2021-10-04
  • 2021-10-31
猜你喜欢
  • 2022-02-07
  • 2022-12-23
  • 2021-11-28
  • 2021-11-07
  • 2021-07-01
  • 2022-12-23
相关资源
相似解决方案