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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:32:39+00:00 2026-05-26T09:32:39+00:00

With the help of one of StackOverflow’s I beat one problem, but now I

  • 0

With the help of one of StackOverflow’s I beat one problem, but now I have another. In my procedure I have this code:

 BEGIN 
FOR nr IN 1..102 
LOOP
    DBMS_OUTPUT.PUT_LINE(nr);
    EXECUTE IMMEDIATE 
        'BEGIN ' || 
            'IF rec.column_' || nr ||' IS NULL THEN ' || 
                ':x:=1; ' || 
            'ELSE ' ||
                ':x:=0; ' ||
            'END IF; ' ||
        'END; ' 
        USING OUT isnull;
    IF isnull = 1 THEN 
        DBMS_OUTPUT.PUT_LINE('test');
    END IF;
END LOOP;

END;

Unfortunately when I try to run this procedure I get en error: PLS-00201 identifier ‘rec.column_1′ must be declared. I’ ve found that:

In the dynamic SQL that you are executing, you refer to OrderStoreData, but no variable of that name is defined in the dynamic SQL.
The code executed by the Execute Immediate execute in it’s own scope, and everything not defined explicitly as part of the NDS or passed in as a bind variable will be out of scope.

But I do not know how to deal with this.

  • 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-26T09:32:40+00:00Added an answer on May 26, 2026 at 9:32 am

    Record must be accessed from dynamic sql block, so place it for example in package header. Then it’s globally available…

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

Sidebar

Related Questions

Can any one help me, i already checked resizing demo but this work through
I got this example from one StackOverflow question that was asked but I couldn't
I have searched stackoverflow to find an answer but i can not find one.
I constantly am using stackoverflow to help me but right now I am stumped
https://stackoverflow.com/editing-help I have developed one app for my customer. I tested it on devices(ipad/ipod
This may be a little unconventional way of asking for help but my code
I have read more than 3 questions here in stackoverflow about this, but all
Thanks to help from stackoverflow users I have managed to change colour of one
I have been reading stackOverflow answers for this question for hours. Please help me.
can any one help me with code that subtract 1 from a digit stored

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.