The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Vivek.
Asked: November 11, 2020 - 7:59 pm UTC
Last updated: November 12, 2020 - 12:41 am UTC
Version: 12c
Viewed 1000+ times
SQL> create table table1 ( lmt_id int, group_id int ); Table created. SQL> insert into table1 values (1,1); 1 row created. SQL> SQL> declare 2 l_lmt_id int; 3 p_grp_id int := 1; 4 begin 5 Select lmt_id into l_lmt_id 6 from table1 t 7 where t.group_id = p_grp_id; 8 end; 9 / PL/SQL procedure successfully completed.
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library