mysql-窗口多表连接视图view

 create VIEW view_comment
as (select w.idStr,w.content,w.userID,w.wei_id,w.createTime,'' as type FROM wei_comment_comment w)
UNION ALL
(select r.idStr,r.content,r.userID,r.reviewID wei_id,r.createTime,'' as type from review_comment r )
UNION ALL
(select i.idStr,i.content,i.userID,i.insResRepID wei_id,i.createTime,'' as type from institution_res_report_comment i)
UNION ALL
(select n.idStr,n.content,n.usrID userID,n.noticeID wei_id,n.createTime,'' as type from notice_comment n)
UNION ALL
(select f.idStr,f.content,f.usrID userID,f.firstDiscloseID wei_id,f.createTime,'' as type from first_disclose_comment f)
上一篇:Palindrome(最长回文串manacher算法)O(n)


下一篇:UITableView  折叠效果