SELECT NAME, ADDRESS, PHONE
INTO v_employee_name, v_employee_address, v_employee_phone_number
FROM EMPLOYEE
WHERE EMPLOYYE_ID = 6;
DECLARE
r_customer customers%ROWTYPE;
BEGIN
-- get the information of the customer 100
SELECT * INTO r_customer
FROM customers
WHERE customer_id = 100;
-- show the customer info
dbms_output.put_line( r_customer.name || ', website: ' || r_customer.website );
END;
Code language: SQL (Structured Query Language) (sql)