我从单个表创建了一个视图
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
可能是什么原因以及如何解决这个问题?谢谢。