UrbanPro
true

Learn Oracle PL/SQL from the Best Tutors

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

Search in

Common mistake even experienced programmers make in Plsql.

Gavi Y.
21/12/2016 0 0

Hope, you are aware of Procedures in Plsql. Let us discuss one simple thing which we should always remember while writing the datatype of a parameter for a procedure or a function.

Eg: Create or replace procedure proc1 (Name IN Varchar2(10)) AS.

What's wrong in this? Any guesses?

You should never write Varchar2(10) or Number(2) etc for parameters while creating procedure or function. It's an error.

Just write it like,

Create or replace procedure proc1 (Name IN Varchar2, Sal Number)  AS.

Even for the return type of a function.

Inside the declaration section of procedure or function or anonymous block, you should mention the size as Varchar2(20) or Number(3) or so. Otherwise, default size would be assumed depending on the type.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

HTML (Hypertext Markup Language)
HTML (Hypertext Markup Language) is the set of markup symbols or codes inserted in a file intended for display on a World Wide Web browser page. The markup tells the Web browser how to display a Web page's...

To find duplicate records in a table (SQL Server)
Suppose the given table has 2 columns (id, phone_number): SELECT id, COUNT(id) FROM table_nameGROUP BY id HAVING COUNT(id)>1
A

Arti Gupta

0 0
0

Overview Of Database
A Database is a collection of related data organised in a way that data can be easily accessed, managed andupdated. Any piece of information can be a data, for example name of your school. Database is...
S

Sandeep Tiwari

1 0
0

New Features Worth Exploring in SQL Server 2016
New Features Worth Exploring in SQL Server 2016 There is a lot of buzz around SQL Server 2016. Microsoft announced the release of SQL Server 2016 at the Microsoft Ignite Conference during the first...

Why Snowflake is best Data Warehouse solution rather than Azure Synapse and AWD Redshift
Snowflake is the Cloud Data warehousing solution which provides the best storage and compute functionality seperately. It means you can increase Compute power (to transform th data) and storage (to store...
X

Looking for Oracle PL/SQL Classes?

The best tutors for Oracle PL/SQL Classes are on UrbanPro

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

Learn Oracle PL/SQL with the Best Tutors

The best Tutors for Oracle PL/SQL 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