Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6976773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:32:24+00:00 2026-05-27T17:32:24+00:00

I am learning oracle and i am beginner. Please solve my following error. create

  • 0

I am learning oracle and i am beginner. Please solve my following error.

create or replace
PROCEDURE SP_SALE_SELECT
( para1 OUT NVARCHAR2
, para2 OUT NVARCHAR2
, action IN NVARCHAR2
) AS
BEGIN
  IF action = 1 then
    Select * From VI_Sale;
  Else if action = 2 then
    Select * From VI_Sale
    WHERE SaleID = para1;
  Else if action = 3 then
    Select * From VI_Sale
    Where CustomerID = para1;
  Else if action = 4 then
    Select * From VI_Sale
    where SaleID = para1 and CustomerID = para2;
 End if;
END SP_SALE_SELECT;

Error(20,5): PLS-00103: Encountered the symbol “SP_SALE_SELECT” when
expecting one of the following: if

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:32:25+00:00Added an answer on May 27, 2026 at 5:32 pm

    You use ELSE IF instead of ELSEFIF (no space) so you are creating additional ifs which you should close.

    create or replace
    PROCEDURE SP_SALE_SELECT
    ( para1 OUT NVARCHAR2
    , para2 OUT NVARCHAR2
    , action IN NVARCHAR2
    ) AS
    BEGIN
      IF action = 1 THEN
        Select * From VI_Sale;
      ElSEIF action = 2 THEN
        Select * From VI_Sale
        WHERE SaleID = para1;
      ElSEIF action = 3 THEN
        Select * From VI_Sale
        Where CustomerID = para1;
      ELSEIF action = 4 then
        Select * From VI_Sale
        where SaleID = para1 and CustomerID = para2;
     End if;
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Learning Java, so be gentle please. Ideally I need to create an array of
Coming from SQL Server, I am learning some Oracle syntax. This is my table
Excuse me but I am very new at learning to use oracle and sql.
I'm learning how to work with Oracle and am using C#/Visual Studio. Just as
I have been learning about indexes in Oracle SQL, and I wanted to conduct
I'm trying my hand in learning Regular Expressions in Oracle ( rather, my first
I'm learning ruby on rails by following the tutorials in http://ruby.railstutorial.org/ . I'm getting
I'm doing some basic database learning on Oracle 11g over a Citrix client. The
i want to install oracle 11g on a very weak computer for learning. what
I am currently learning Cocoa. However I am coming from a traditional Sybase/Oracle background

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.