Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Pl/Sql table based record

DECLARE 
   customer_rec customers%rowtype; 
BEGIN 
   SELECT * into customer_rec 
   FROM customers 
   WHERE id = 5;  
   dbms_output.put_line('Customer ID: ' || customer_rec.id); 
   dbms_output.put_line('Customer Name: ' || customer_rec.name); 
   dbms_output.put_line('Customer Address: ' || customer_rec.address); 
   dbms_output.put_line('Customer Salary: ' || customer_rec.salary); 
END; 
/
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #table #based #record
ADD COMMENT
Topic
Name
5+3 =