Home » RDBMS Server » Server Administration » PL/SQL code
PL/SQL code [message #371142] Wed, 06 September 2000 08:01 Go to next message
stufi
Messages: 1
Registered: September 2000
Junior Member
I will ask for simple PL/SQL code:
i.e.
select name from emp where id=6;
can you say me for pl/sql code who is work it.
Thanks in advance
Re: PL/SQL code [message #371173 is a reply to message #371142] Wed, 13 September 2000 01:03 Go to previous message
Mahesh Pednekar
Messages: 28
Registered: August 2000
Junior Member
Try this :-

SET SERVEROUTPUT ON
declare
l_name emp.name%type;
begin
select name into l_name from emp where id=6;
dbms_output.put_line('The name of id 6 is '||l_name);
end;
Previous Topic: Need Query Help
Next Topic: Which is the best Microsoft SQLServer or Oracle ??
Goto Forum:
  


Current Time: Sun May 26 20:11:52 CDT 2024