我已经从单个表中创建了一个视图
Create view v1 as
select severity,avg(days),count(bugid) from tabble1 where bugid in (105,109) group by severity
union all
select severity,avg(days),count(bugid) from tabble1 where bugid in (105,109) group by severity
union all
select severity,avg(days),count(bugid) from tabble1 where bugid in (105,109) group by severity
创建了视图。但是,当我看到视图中的数据(select * from v1
)与我仅运行查询时的数据不同时:
select severity,avg(days),count(bugid) from tabble1 where bugid in (105,109)group by severity
union all
select severity,avg(days),count(bugid) from tabble1 where bugid in (105,109)group by severity
union all
select severity,avg(days),count(bugid) from tabble1 where bugid in (105,109)group by severity
可能是什么原因以及如何解决这个问题? 感谢。
答案 0 :(得分:2)
我最有可能看到的可能性: