Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法创建视图。它会抛出该表已经存在的错误,但如果我尝试删除它,它会显示未知表。我检查了这个问题,但它没有多大帮助。
drop view if exists foo; create view foo ... ; # Table foo already exists drop table / DROP TABLE IF EXISTS foo; # unknown table foo
Flush table/repair table也没有解决。有任何想法吗 ?
Flush table/repair table
使用以下语法替换视图:
CREATE OR REPLACE VIEW `my_view` AS SELECT ...