Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Calling procedure with null value

556329Jul 12 2007 — edited Jul 12 2007
Looking for some clarification on how to pass a null value to a stored procedure.

If I'm calling a procedure which takes 5 arguments but one of the 5 arguments may be a null what is the correct syntax in pl/sql?

Do you simply pass the parameter a blank space enclosed by ' ' (single tick marks) as shown below?

Example with the 3rd parameter null

declare
id number;
begin
get_id(1234567, ABC, ' ', 5118, 225893);
end;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2007
Added on Jul 12 2007
4 comments
4,804 views