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 8644177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:13:51+00:00 2026-06-12T12:13:51+00:00

This is sending me a bit mad. I’m trying to add in a variable

  • 0

This is sending me a bit mad. I’m trying to add in a variable to a procedure, but it wasn’t working – I just got this error message:

[Error] Syntax check (25: 7): ERROR line 25, col 7, ending_line 25,
ending_col 12, Found ‘number’, Expecting: ; -or- .. := DEFAULT
NOT NULL -or- % -or- ( . @

I knocked up a really basic procedure below to isolate the problem and now I’m completely stuck, as every basic syntax guide I’ve looked as says to do what I’ve done. Why can’t i declare variables as shown below? I normally code in SQL Server if that’s any clue as to my problem. Many thanks if anyone can help!

CREATE OR REPLACE PROCEDURE MRCS.pro_xxx_test1 (cats out sys_refcursor)
IS

declare

spoon number;

balls varchar2(3);

BEGIN

 open cats for select * from dual;

   end;

/
  • 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-06-12T12:13:52+00:00Added an answer on June 12, 2026 at 12:13 pm

    Remove the “DECLARE”. Not needed in a function / procedure declaration

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to work on this website and I am a bit new
this question might sound a little bit weired... But I will try to explain:
Hey guys this question is a bit nebulous so I apologize...I'm just looking for
This is driving me a little bit mad! I have taken an image and
Could anyone please tell me why I am getting this error message while sending
I'm a bit lost on how to do this properly, I am sending a
Why is Android sending this symbol?(�) What I'm doing is, get a few variables,
I am using this for sending file to user header('Content-type: application/zip'); header('Content-Length: ' .
I have this email sending code that does not show a chooser (good). How
Is there some way when sending this message to specify that I rather have

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.