Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SELECT INTO Oracle

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)
Source by www.oracletutorial.com #
 
PREVIOUS NEXT
Tagged: #SELECT #INTO #Oracle
ADD COMMENT
Topic
Name
9+7 =