📜  SELECT INTO Oracle - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:06.039000             🧑  作者: Mango

代码示例1
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)