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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:20:15+00:00 2026-05-12T10:20:15+00:00

I have an Oracle function GetEmployeeDetails which saves all the employee details into a

  • 0

I have an Oracle function GetEmployeeDetails which saves all the employee details into a temporary table TempEmployeeDetails table.

I have to call the function followed by a select query on the temporary table. The function call succeeds but the select query throws the following error.

“BEGIN :Output := MyPackage.GetEmployeeDetails(”
+ “:EmployeeId,”); SELECT * FROM TempEmployeeDetails; END;”

The above query is giving me this error:

ORA-06550: line 1, column 98:

PLS-00428: an INTO clause is expected in this SELECT statement

  • 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-12T10:20:16+00:00Added an answer on May 12, 2026 at 10:20 am

    I think you should separate the query from the function call, if you are using OracleClient so the code probably by:

    OracleCommand cmd = new OracleCommand("GetEmployeeDetails", conn);
    cmd.CommandType = CommandType.StoredProcedure;
    
    
    par = new OracleParameter("EmployeeId", OracleType.int32);
    par.Value = EmployeeId;
    par.Direction = ParameterDirection.Input;
    cmd.Parameters.Add(par);
    
    cmd.ExecuteNonQuery();
    

    now to get the data from tempEmployeeDetails make another query like the following:

    OracleCommand cmd = new OracleCommand("SELECT * FROM TempEmployeeDetails", conn);
    OracleDataReader dr = cmd.ExecuteReader();
    while (dr.Read())
    {
       //do what you want...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PL/SQL function (running on Oracle 10g) in which I update some
I have a VB.Net function which executes a Oracle Stored Proc and returns a
I have a oracle table A which contains a column A.a which used to
Hi i have an oracle function already present in the database which i have
I have to write an Oracle procedure which should invoke an Oracle function returning
I have a Oracle function which returns sys_refcursor which is CREATE OR REPLACE FUNCTION
In my Entity class I have the following, calling a oracle function which returns
I have an oracle procedure which creates a text file using the UTL_FILE.FOPEN function.
I am porting an Oracle function into Postgres PGPLSQL.. I have been using this
I have one function in oracle i need to convert it into c# code

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.