📜  oracle select into 和 inner join - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:21.956000             🧑  作者: Mango

代码示例2
DECLARE 
    v_col1 table.col1%type;
    v_col3 table.col3%type;
    v_col4 table.col4%type;
    v_column table2.column%type;
BEGIN 
    SELECT table.col1, table.col3, table.col4, table2.column
    INTO v_col1, v_col3, v_col4, v_column
    FROM table
    JOIN table2
    On table.col6 = table2.col1;
END;