mysql-窗口多表连接视图view
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)
知识只有共享才能传播,才能推崇出新的知识,才能学到更多,这里写的每一篇文字/博客,基本都是从网上查询了一下资料然后记录下来,也有些是原滋原味搬了过来,也有时加了一些自己的想法