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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:10:24+00:00 2026-05-30T20:10:24+00:00

What is the SQL to list the parameters of a MySQL stored procdure? The

  • 0

What is the SQL to list the parameters of a MySQL stored procdure? The information_schema.routines table holds the stored procedure names but there doesn’t seem to be a standard place where the parameters are stored.

  • 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-30T20:10:25+00:00Added an answer on May 30, 2026 at 8:10 pm

    More recent versions of MySQL (5.5.3 and above) introduced the information_schema.parameters object which should give you the information you need;

    SELECT * 
    FROM information_schema.parameters 
    WHERE SPECIFIC_NAME = 'your_procedure';
    

    Earlier versions of MySql rely on having access to the mysql.proc table; the column ‘param_list’ has all of the parameter information in there for the procedure with the name you are interested in. The information is decidedly non-normalised, though, as it is stored as comma separated string:

    SELECT param_list FROM mysql.proc WHERE db='your_database' AND name='your_procedure';
    

    Gives:

    IN param1 VARCHAR(32), IN param2 int, ... 
    

    This requires some more work to put into a format for presentation; although a string.split function would at least tidy it up.

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

Sidebar

Related Questions

Is there a SQL statement that will list the names of all the tables,
Basically I am trying to retrieve a list of stored procedure parameters using Linq
Is there a way using SQL to list all foreign keys for a given
Is there a way in SQL Server to list all the views within a
Is there a SQL command that will list all the tables in a database
SQL novice here. I'm trying to get a list of invoice numbers. There are
Here's an example of how to use table-valued parameters in a SQL Server 2008
I'm trying to get the list of field names for a given table, to
My SQL stored procedure is as follows: CREATE PROCEDURE [dbo].[GetTradeByLevel]( @LevelId INT ) AS
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters

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.