DECLARE
today DATE;
yesterday DATE;
traffic NUMBER;
CURSOR c1
IS
SELECT dt, traffic
FROM traffic_diff;
BEGIN
OPEN c1;
FETCH c1
INTO today, traffic;
INSERT
CLOSE c1;
END;
/
请建议如何将值插入表中。在创建光标之前。