write a pl/sql code to accept book_no and returns the book title

by ankush

oracle pl/sql query

Comments for write a pl/sql code to accept book_no and returns the book title

Average Rating starstarstarstarstar

Click here to add your own comments

Jul 13, 2015
Nice Post
by: Clark harry

Very courageous you deal this sensitive issue very well I really appreciate you.

Jun 23, 2015
Good post
by: Emery West

You have a professional niche site, thank you for your awesome work! Thank you!

Apr 16, 2015
Why use PL/SQL in this case?
by: Anonymous

If you are given the book number and just need to return the name of that book you don't need to use PL/SQL and in fact you would be better off not using PL/SQL.

You just need to write a SQL statement - something like:

SELECT book_name FROM books
WHERE book_no= &in_book_mo;

Aprt from that PL/SQL is not designed for interacting with the end user. You can write inofrmation out to the default output device using the built-in package DBMS_OUTPUT but there is no equivalent dbms_input package. PL/SQL does have built-in procedures to read from files and there are work arounds you can use but that just makes things difficlult.

If you want to interact with the user you need to use something other than PL/SQL. You could use Oracle APEX or PHP or .Net or Java or C/C++ or any one of a number of other tools (and call PL/SQL code from them) but not PL/SQL on its own.

See our PL/SQL tutorials - start from http://www.asktheoracle.net/plsql-tutorial.html

Click here to add your own comments

Join in and write your own page! It's easy to do. How? Simply click here to return to Oracle Questions.