0

我创建了一个正在运行的程序

CREATE OR REPLACE PROCEDURE INIT_ACTOR_QUOTES AS 
 CURSOR Actor1 IS
 SELECT actorID FROM Actor;
 BEGIN
 FOR row IN FirstProcedure LOOP
 INSERT INTO ACTOR_QUOTES VALUES (row.actorID, AQ_NT(ACTOR_QUOTE_TYPE('',NULL, '', '')));
 DELETE TABLE (SELECT QUOTES FROM ACTOR_QUOTES WHERE ACTORID=row.actorID);
 END LOOP;
 END INIT_ACTOR_QUOTES;
 /

我在尝试从表 QUOTES 中选择 ACTOR_QUOTES 表上 ACTORID 的任何 ACTORID 变量时遇到问题。

我试过的代码

SELECT * FROM ACTOR_QUOTES WHERE ACTORID = ('200');

需要帮助。

4

1 回答 1

0
SELECT actorID, quotes.*
FROM ACTOR_QUOTES
CROSS JOIN TABLE(QUOTES) quotes
WHERE ACTORID = ('200');
于 2012-05-07T01:03:14.003 回答