zoukankan      html  css  js  c++  java
  • 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)
  • 相关阅读:
    VS中使用svn注意事项
    后端调用WebApi
    抽象工厂模式
    观察者模式
    建造者模式
    外观模式
    模板方法
    原型模式
    工厂方法
    代理模式
  • 原文地址:https://www.cnblogs.com/hwaggLee/p/4730415.html
Copyright © 2011-2022 走看看