【发布时间】:2011-03-24 08:59:08
【问题描述】:
我不想创建两个单独的视图。
create view fg_voted as (
select *
from (select f1.foto, count(f1.vote) stars,f1.vote, f1.voted
from fg_foto_bewertung f1
where f1.vote >= 3 group by f1.foto, f1.vote) vi_foto
where stars > 3);
如何在单个查询中编写它来创建视图?
【问题讨论】:
标签: mysql sql view mysql-error-1349