0

我创建了一个视图article_avis_favorable,但是当我进行此查询以搜索文章但使用一些规范时:

SELECT blabla
FROM Table
WHERE id_article in article_avis_favorable;

它显示一条错误消息Erreur SQL : ORA-00904: "ARTICLE_AVIS_FAVORABLE" : identificateur non valide 00904. 00000 - "%s: invalid identifier"

4

1 回答 1

1

只需将您的视图视为表格

SELECT blabla
FROM Table t
INNER JOIN article_avis_favorable v ON t. id_article = v. id_article

或者

SELECT blabla
FROM Table 
WHERE id_article in (SELECT id_article FROM article_avis_favorable);
于 2013-04-21T00:15:33.290 回答