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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:25:41+00:00 2026-06-01T20:25:41+00:00

I have created one stored procedure and its functioning well, what I am wanting

  • 0

I have created one stored procedure and its functioning well, what I am wanting is right now there is only one SQL statement in the stored procedure which is returning the expected values, can I add multiple SQL statements which will be resulting multiple vlues. Please let me know.

Here is my stored procedure

DELIMITER //
CREATE PROCEDURE amazonall(IN client_ids INT(11))
BEGIN
SELECT SUM(total_inserted) into ti from log_amazon_import  where client_id = client_ids and date_format(created_date,'%Y-%m-%d') between DATE_SUB(CURDATE(),INTERVAL 1 WEEK) and CURDATE();
END //
DELIMITER ;

and also please let me know how can I access those return values, thanks in advance.

  • 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-01T20:25:41+00:00Added an answer on June 1, 2026 at 8:25 pm

    Yes, you can. If you want to return multiple records – just return the data set.

    • Populate (temporary) tables and read them after.
    • Just run SELECT statements (without INTO) and read data set in the application, I know that mysqli extension allows it (functions: more_results, next_result, …).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Helo, My question is I have one Stored Procedure in SQL Server that returns
I have created one user named tuser with create database rights in SQL server
I'm using entity framework 4. I have a stored procedure that just updates one
I have created a method that can be called using a stored procedure name
I know there have been numerous questions here about inline sql vs stored procedures...
I'm writing one stored procedure, which I have to create a xml column from
I have a stored Procedure (Generate_Insert)which will output an Insert statement as output given
I've created an online store within an android app in webview but have one
I have created one table using the below command: create table Table1( Id int
I have created one aspx Page from that i need to access the property

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.