Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle select into

SELECT NAME, ADDRESS, PHONE
INTO v_employee_name, v_employee_address, v_employee_phone_number
FROM EMPLOYEE
WHERE EMPLOYYE_ID = 6;
Comment

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)
Comment

PREVIOUS NEXT
Code Example
Sql :: if column value is null then in mysql 
Sql :: query distinct 
Sql :: query by column for substring sql 
Sql :: change password postgres pgserver 
Sql :: sql server select last row of each item in group by column 
Sql :: sql currency format 
Sql :: SQL: get date difference in minutes 
Sql :: sql change data type 
Sql :: insert into select mysql 
Sql :: mysql ilike 
Sql :: null value in column violates not-null constraint 
Sql :: how to find special characters in sql 
Sql :: mysql url data type 
Sql :: sql if example 
Sql :: mysql not defined 
Sql :: mysql dump with table query 
Sql :: sql datitime to date 
Sql :: lower case in sql 
Sql :: mysql how to use FIND_IN_SET function in WHERE clause ? 
Sql :: oracle session statistics 
Sql :: multiple replace value mssql 
Sql :: mql5 datetime get hour 
Sql :: sql ending with vowels 
Sql :: sql add column with default value 
Sql :: creating sqeuence in oracle database 
Sql :: error 1054 mysql 
Sql :: run docker container with database as rds metabase 
Sql :: nth highest salary in sql 
Sql :: sql duplicate a table with data 
Sql :: show tablespace oracle 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =