标签:row into tab output pre out column http bms
使用 Select Into 保存数据至变量
T_aTable aTable%rowtype; --row type
v_col1 aTable.col1%TYPE; --column type
v_col2 aTable.col2%TYPE; --column type
begin
select col1, col2 into v_col1,v_col2
from aTable where v_col1 = ‘XX‘ ;-- -塞到v_col1 这变量
select * into T_aTable
from aTable where v_col1 = ‘XX‘; --塞到T_aTable 这row
dbms_output.put_line(v_col1); --output v_col1
dbms_output.put_line(T_aTable); --output T_aTable
end;
标签:row into tab output pre out column http bms
原文地址:https://www.cnblogs.com/petewell/p/11516504.html