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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:29:36+00:00 2026-06-16T04:29:36+00:00

I couln’t find this in SO and thought it might be worth finding it

  • 0

I couln’t find this in SO and thought it might be worth finding it here as the oracle documentation doesn’t specify it.

http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions023.htm

  • 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-16T04:29:37+00:00Added an answer on June 16, 2026 at 4:29 am

    Tested on Oracle 10g.

    DECLARE
        cur SYS_REFCURSOR;
        vQuery VARCHAR2(32000) := 'SELECT COALESCE(:NULLS) FROM dual';
        vNulls VARCHAR2(32000) := '1, 1';
        i PLS_INTEGER := 2;
    BEGIN
        LOOP
            OPEN cur FOR REPLACE (vQuery, ':NULLS', vNulls);
            CLOSE cur;
    
            i := i + 1;
            vNulls := vNulls || ', 1';
        END LOOP;
        EXCEPTION
            WHEN OTHERS THEN
                DBMS_OUTPUT.PUT_LINE(i || ' ' || SQLERRM);
    END;
    
    256 ORA-00939: too many arguments for function
    

    So, the answer is 256

    EDIT:
    As suggested by Bob Duell:

    SELECT func_id, name, minargs, maxargs 
    FROM V$SQLFN_METADATA
    WHERE name = 'COALESCE'
    
    FUNC_ID NAME        MINARGS MAXARGS 
    387     COALESCE    2       0   
    

    🙁

    EDIT:

    The limit on 11.2.0.3 appears to be 65,535.

    The above script will not work with that many arguments. You can test the limit by creating and running a very large SQL statement, with a script like the one below.

    --Create a COALESCE with 65,536 functions.
    --It will fail with: ORA-00939: too many arguments for function
    --But if you remove the last argument it will work, at least on 11.2.0.3.
    --WARNING: Sending this much data through DBMS_OUTPUT may freeze some tools.
    begin
        dbms_output.put_line('select coalesce(');
        for i in 1 .. 6553 loop
            dbms_output.put_line('1,2,3,4,5,6,7,8,9,0,');
        end loop;
        dbms_output.put_line('1,2,3,4,5,6');
        dbms_output.put_line(') from dual;');
    end;
    /
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw some documentation and previous questions about this, but couln't find a solution.
This seems like it should be really easy but I couln't find an answer
i have a situation and couln't figure out for this time.Here's the question. I
Could someone please tell me why this <%= destroy_password_url @user.password_reset_token %> generates http://localhost:3000/api/destroy_password.4G5EoRVYMUAtiIKqOerKsw routes.rb
could somebody please take a look at this http://jsfiddle.net/bloodygeese/EzkFR/1/ My aim is to on
there is a mysql function in php called mysql_free_result() ; I couln't find any
Couldn't find this anywhere, maybe I'm looking for the wrong verbs. I'm trying to
Couldn't find an answer to this solution, so once I figured it out I
I couln't find any working example so i am trying my luck. i have
I am working on a bug(?) for a few hours now, but couln’t fix

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.