UrbanPro
true

Take Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

3. SELECT INTO Explained

S
Saurabh Sinha
24/06/2020 0 0

The SELECT INTO clause of SQL is used to retrieve one row or set of columns from the Oracle database. The SELECT INTO is actually a standard SQL query where the SELECT INTO clause is used to place the returned data into predefined variables.

Example 1:

DECLARE
   v_var varchar2(100);    --- Give same datatype as table column
BEGIN
  SELECT col1 INTO v_var FROM    employees WHERE    id=100;
  DBMS_OUTPUT.PUT_LINE (v_var);
END;

Example 2:

DECLARE
  v_fname varchar2(100);
  v_lname varchar2(100);
BEGIN
  SELECT first_name, last_name INTO v_fname, v_lname FROM employees WHERE  id = 100;
  DBMS_OUTPUT.PUT_LINE ('First Name - '||v_fname||' Last Name - '||v_lname);
END; 

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Java Intro For Concept And Interview
Java is object-oriented, robust, multithreaded, distributed and dynamic language. It's platform independent and architecture independent language and hence portable. Feature WORA supports it means writing...

Future tense and signal words- will/going to
Future Simple Tense is used in the following situations: 1. When we talk about a situation or activity which will happen in the future. The concert will start at 5 p.m.One day you will understand everything.We...

Name of the dry fruits in marathi
Names of dry fruits: (सुका मेवा ची नावे) 1. Almond Nut -बदाम 2. Apricot dried - जर्दाळू 3. Betel-nut - सुपारी4. Cashew nut - काजू 5. Chestnut - छोटे अक्रोड 6. Coconut - खोबरे, नारळ 7. Cudpahnut - चारोळी...

How To Avoid Sleep While Studying?
I will give you the top 7 methods to avoid sleep while you are studying: 1) Be Interested in what you are Studying! Yes to prevent sleep you must make sure that you are Interested in what you are reading! So...
A

Abraham P.

1 0
0

python List operations
The list is one of the Data structure in python it will be created different ways as shown below listname= listname=list() lisstname= some characteristics & properties of a list : list Accessing: once...
X

Looking for Tuition Classes?

The best tutors for Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take Tuition with the Best Tutors

The best Tutors for Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more