0

I actually found something here but I need a syntax for multiple tables. Example:

DECLARE
    CURSOR select_results IS
        SELECT T1.ID, T2.DP FROM T1, T2 WHERE T1.ROW_ID=T2.DP;
    select_result T1.ID%ROWTYPE, T2.DP%ROWTYPE;
BEGIN
    -- DO SOMETHING
END;

Could someone explain how can I create such custom table variable and is it possible at all? Thanks in advance!

4

1 回答 1

1

尝试

select_result  select_results%ROWTYPE;

分享和享受。

于 2014-01-31T12:08:08.160 回答