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

  • Home
  • SEARCH
  • 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 7193901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:15:47+00:00 2026-05-28T20:15:47+00:00

I am having troubling figure out error on following code DECLARE CR_QUERY INTEGER; CR_HANDLE

  • 0

I am having troubling figure out error on following code

DECLARE
    CR_QUERY                INTEGER;
    CR_HANDLE               INTEGER;        
    V_COL1          VARCHAR2(40);
    V_COL2          VARCHAR2(18);
    N_ACTION                NUMBER(3);
    T_CREATE_TS             TIMESTAMP(6);
    V_COL3          VARCHAR2(60);

BEGIN
    CR_QUERY := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE (CR_QUERY, I_V_QUERY, DBMS_SQL.NATIVE);
    DBMS_SQL.DEFINE_COLUMN (CR_QUERY, 1, V_COL1, 40);
    DBMS_SQL.DEFINE_COLUMN (CR_QUERY, 2, V_COL2, 18);
    DBMS_SQL.DEFINE_COLUMN (CR_QUERY, 3, N_ACTION, 3);
    DBMS_SQL.DEFINE_COLUMN (CR_QUERY, 4, T_CREATE_TS, 6);
    DBMS_SQL.DEFINE_COLUMN (CR_QUERY, 5, V_COL3, 60);

    CR_HANDLE := DBMS_SQL.EXECUTE (CR_QUERY);
    LOOP
        BEGIN
            EXIT WHEN DBMS_SQL.FETCH_ROWS (CR_HANDLE) = 0;

            DBMS_SQL.COLUMN_VALUE (CR_QUERY, 1, V_COL1, N_COLERR, I_ACTUAL_LEN);
            DBMS_SQL.COLUMN_VALUE (CR_QUERY, 2, V_COL2, N_COLERR, I_ACTUAL_LEN);
            DBMS_SQL.COLUMN_VALUE (CR_QUERY, 3, N_ACTION, N_COLERR, I_ACTUAL_LEN);
            DBMS_SQL.COLUMN_VALUE (CR_QUERY, 4, T_CREATE_TS, N_COLERR, I_ACTUAL_LEN);
            DBMS_SQL.COLUMN_VALUE (CR_QUERY, 5, V_COL3, N_COLERR, I_ACTUAL_LEN);

the error is Error(41,5): PLS-00307: too many declarations of ‘COLUMN_VALUE’ match this call.

can someone suggest whats going ?

  • 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-28T20:15:48+00:00Added an answer on May 28, 2026 at 8:15 pm

    The issue is with:

    DBMS_SQL.COLUMN_VALUE (CR_QUERY, 4, T_CREATE_TS, N_COLERR, I_ACTUAL_LEN);
    

    If you define the variable T_CREATE_TS as a DATE it should work fine, but COLUMN_VALUE doesn’t have a declaration where VALUE is of type TIMESTAMP (at least not in 10.2), so it throws the error.

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

Sidebar

Related Questions

Having the following code: int main(int argc, char* argv[]) { // program code std::cout
I am having a problem in executing the following code while searching in the
Having a spot of trouble with the following code. The method NextIPID() should simply
I am having troubling reading my values out of an ArrayList. The compiler goes
Having a lot of pain with the following Perl file parsing code [last reply
Having trouble using libstatgrab -- I receive the following error at compile time: libstatgrabTest.cpp:16:
I'm having a troubling problem testing some code for and Android app. My app
Having the following code: template<typename T, typename OutStream = std::ostream> struct print { OutStream
Having the following code: #include <iostream> struct A { int x; A(){} ~A(){std::cout <<~A(<<x<<)\n;}
Having a problem getting a TreeView control to display node images. The code below

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.