Solved

Declaring variables in MySQL 5 Stored Procedure

Posted on 2004-03-24
1
583 Views
Last Modified: 2012-05-04
I would like to avoid specifying the exact type and column length of a variable in a stored procedure when using cursors.  For example, instead of declare vendorNbr varchar(16),
I want to use a feature like Oracle has:  declare vendornbr ap_data.vendorNbr%TYPE;   This will make maintenance easier for when column lengths change.  Does anyone know whether such a feature exists?
0
Comment
Question by:lhalkapeel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
Squeebee earned 50 total points
ID: 10669936
I have not seen such a syntax yet in the documentation. You may wish to log a request at bugs.mysql.com.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question