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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:27:15+00:00 2026-06-08T11:27:15+00:00

May be stupid topic, but… I have a select contents a function and would

  • 0

May be stupid topic, but…
I have a select contents a function and would like to compile it as stored procedure:

CREATE OR REPLACE PROCEDURE PDATA.FILE_PARALLEL_DUMP
IS
BEGIN

SELECT * FROM TABLE
            (parallel_dump
                (
                CURSOR(
                SELECT 
                to_clob(B1)||to_clob(B2)||to_clob(B3)||to_clob(B4) AS cvs  
FROM 
(select 
(A1...A839) as B4 from 
  PDATA.FILE_TAB) s),
                'PR',
                'TEST_FOLDER'
                )
            ) nt;


END EXT_FILE_PARALLEL_DUMP;
/

But during compilation I am reciving a mistake: PLS-00428: an INTO clause is expected in this SELECT statement.

I know than the structure of select in the stored procedure should be like "select A1, A2 into p_a1, a_A2 from...", but in case below (with using function) i have no idea how to write a correct code. May you help me?
Thank you.

  • 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-08T11:27:17+00:00Added an answer on June 8, 2026 at 11:27 am

    In PL/SQL, the result of a SELECT needs to go somewhere. Either your create a loop:

    FOR r IN (SELECT ... your query ) LOOP
       -- do something with the row r
    END LOOP;
    

    Or you use use a memory table:

    SELECT * INTO mem_tab_instance FROM ....
    

    Or then you need to approach your task in a different way.

    Do you have prior experience with another database system such as SQL Server? In this aspect, these systems are very different.

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

Sidebar

Related Questions

This may sound stupid but... When I create big SQL commands I want to
My question may be stupid but I have a 2 days experience in MYSQL.
This may be a stupid question but I have a code with the following
This may be a stupid question, but I have to ask! I have the
This may be a stupid questions but I can't find it. I'd like to
The question's title may sound stupid, but I have beenw wondering about the following
I have a question that for some with experience may sound stupid, but I
This question may seem stupid, but, so be it! I have a stupid problem
just learning Java and I know this may sound stupid but I have to
This may sound somewhat stupid, but I have to know as I'm writing a

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.