我创建了一个正在运行的程序
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;
/
我在ACTOR_QUOTES表格中尝试从表格QUOTES中选择ACTORID的任何ACTORID变量时遇到问题。
我试过的代码
SELECT * FROM ACTOR_QUOTES WHERE ACTORID = ('200');
需要帮助。
答案 0 :(得分:0)
SELECT actorID, quotes.*
FROM ACTOR_QUOTES
CROSS JOIN TABLE(QUOTES) quotes
WHERE ACTORID = ('200');