Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa SQL Processing stored procedure in MySQL

Have Programming Question? Ask it here!
 
 
 


Mohammed Jani Pasha
Processing stored procedure in MySQL
1 Answer(s)      4 years and 2 months ago
Posted in : SQL


Dear All java with mysql developer.....

i need to convert my SQL procedure to MySQL database... here is my Stored procedure in SQL....

create or replace procedure INVNAMES (bno in number, inv_name1 out varchar2,inv_name2 out varchar2,
inv_name3 out varchar2, inv_name4 out varchar2, inv_name5 out varchar2, inv_name6 out varchar2,
inv_name7 out varchar2,inv_name8 out varchar2,inv_name9 out varchar2,inv_name10 out varchar2) as

begin
for var_rec in (select inv_code from billing where bill_no=bno)
loop
inv_name1:=var_rec.inv_code(1);
inv_name2:=var_rec.inv_code(2);
inv_name3:=var_rec.inv_code(3);
inv_name4:=var_rec.inv_code(4);
inv_name5:=var_rec.inv_code(5);
inv_name6:=var_rec.inv_code(6);
inv_name7:=var_rec.inv_code(7);
inv_name8:=var_rec.inv_code(8);
inv_name9:=var_rec.inv_code(9);
inv_name10:=var_rec.inv_code(10);
end loop;
end;


in this SP.. i am using 10 out parammeters........



so can anybody help me out please......if get solution please mail me on jani.pasha14u@gmail.com

Regards
Jani Pasha

Advertisement
View Answers

May 28, 2010 at 4:59 PM


Hi Friend,

Please visit the following link:

http://www.roseindia.net/mysql/mysql5/stored-procedures-and-functions.shtml

Hope that it will be helpful for you.
Thanks


Related Tutorials/Questions & Answers:
Processing stored procedure in MySQL - SQL
Processing stored procedure in MySQL  Dear All java with mysql developer..... i need to convert my SQL procedure to MySQL database... here is my Stored procedure in SQL.... create or replace procedure INVNAMES (bno
stored procedure
stored procedure  what is stored procedure
Advertisements
stored procedure
stored procedure  on storing values to database using stored procedure it throws an error lyk ADODB.Command error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another
Records are not inserting in to main table while running the mysql stored procedure.
Records are not inserting in to main table while running the mysql stored procedure.  Hi, Im migrating procedures from oracle to MySql.In that procedure records are not inserted into main table from temp table.But im getting msg
Stored Procedure and Trigger
Stored Procedure and Trigger  hello, What is the difference between Stored Procedure and Trigger ?   hii, Triggers once defined are called automatically, there can be no explicit invocation Stored procedure has
What is Stored Procedure?
What is Stored Procedure?  What is Stored Procedure?   Hi, Here is the answer, A stored procedure is a named group of SQL statements that have been previously created and stored in the server database. Stored
Insert Data in Table Using Stored Procedure
into a table using stored procedure. Steps: 1.Create database: To create...;); 7.Step to call procedure: We are using CallableStatement to execute a stored...;} } The code of the stored procedure is given below
receive a ResultSet from a stored procedure
receive a ResultSet from a stored procedure  How do I receive a ResultSet from a stored procedure
update date from stored procedure
update date from stored procedure  how to works on insert,update data from stored procedure.   Insert data using stored procedure
JPA 2.1 Stored Procedure Example
JPA 2.1 Stored Procedure Example - Lear how to call stored procedures from JPA program In this tutorial you will learn how to create Stored Procedure in MySQL database and then call the stored procedure in your JPA 2.1 based
creating and executing stored procedure using hibernate
creating and executing stored procedure using hibernate  I have to execute following query using hibernate DECLARE @i_STARTDATETIME DATETIME DECLARE @i_ENDDATETIME DATETIME DECLARE @o_ERRORCODE INT DECLARE @o_ERRORDESCRIPTION
image stored in mysql
image stored in mysql   how does an image store in mysql using java. gime an exam. code. thanks..   Insert Image in MySQL
Mysql Declare Procedure
Mysql Declare Procedure        Mysql Declare Procedure is used to define a local variable within... with Example The Tutorial grasp you an example from 'Mysql Declare Procedure
How to convert Mssql Procedure into Mysql Procedure.
How to convert Mssql Procedure into Mysql Procedure.  Hello Sir, I have a mssql procedure and i need it to be converted to mysql ... Below is my mssql procedure code.. WITH CTE AS ( SELECT ROW
How to convert Mssql Procedure into Mysql Procedure.
How to convert Mssql Procedure into Mysql Procedure.  Hello Sir, I have a mssql procedure and i need it to be converted to mysql ... Below is my mssql procedure code.. WITH CTE AS ( SELECT ROW
Write a C/C++ program to show the result of a stored procedure
Write a C/C++ program to show the result of a stored procedure   how to write this?? Write a C/C++ program to show the result of a stored procedure "PROCRESETMAIL" on database "USER_NOTIFY
Stored Procedures and Functions
in version MySQL 5.0. Stored Procedure is a set of statements, which allow ease and flexibility for a programmer because stored procedure is easy to execute than reissuing the number of individual SQL statements. Stored procedure can call another
supplying values to in parameters of stored procedure in ms sql and displaying out parameters
supplying values to in parameters of stored procedure in ms sql and displaying out parameters  I have to execute following procedure ALTER PROCEDURE [dbo].[get_date] @codeId int, @vardate as datetime OUTPUT AS SELECT
Mysql Alter Procedure
Mysql Alter Procedure     ... that is executed under one name. Mysql Alter Procedure is used to modify... illustrate an example from 'Mysql Alter Procedure'. To grasp Example, we create
Mysql Alter Procedure
Mysql Alter Procedure     ... that is executed under one name. Mysql Alter Procedure is used to modify and redefine... an example from 'Mysql Alter Procedure'. To grasp Example, we create a table
Error in MySQL Procedure Using JAVA Code
Error in MySQL Procedure Using JAVA Code  The following Java code (using Connector/J to create a stored procedure on MySQL 5.0) does not execute...("DELIMITER //\nCREATE PROCEDURE abdt (std INT)\nBEGIN\nSELECT attbegin, attend FROM
callable statement,stored procedure for insert data and also for update data into oracle database using jsp
callable statement,stored procedure for insert data and also for update data... have one task to do soft parsing tl asked to do callable statement,stored procedure for inserting data into oracle database as bind variable and same
procedure
procedure   step by step procedure to build servlet or jsp in eclipse
procedure
procedure  write a procedure to update salary to 20% based on employee number
passing xml created using DocumentBuilderFactory as input to oracle stored procedure using java JDBC
and it is to be send using JDBC. Stored procedure in oracle database will contains two... passing xml created using DocumentBuilderFactory as input to oracle stored procedure using java JDBC  I want to send the xml as input parameter
Stored procedures
;hello, A stored procedure is a set of statements or commands which reside in the database. The stored procedure is precompiled. Each Database has it's own stored procedure language,   Hi, Learn how to create Stored Procedure
Mysql Loop in Procedure
Mysql Loop in Procedure       Loop in Procedure is a simple loop construct that enables an repeated... an example from 'Mysql Loop in Procedure'.To grasp this example we create
Mysql Loop in Procedure
Mysql Loop in Procedure       Loop in Procedure is a simple loop construct that enables... helps you to understand an example from 'Mysql Loop in Procedure'.To grasp
how to store image in folder and stored image path in mysql database using JSP
how to store image in folder and stored image path in mysql database using JSP  how to store image in folder and stored image path in mysql database using JSP
MySQL Area
; Run Procedure to calculate area: You can run MySQL stored procedure by using... of the rectangle.         Create Stored Procedure... MySQL Area      
iBatis Stored Procedure Example
iBatis Stored Procedure Example   ... have created a stored procedure in "vin" database named as showData... procedure first open MySQL and create procedure as defined below:    
data processing is
data processing is   data processing is   Data processing is associated with commercial work. Data processing is also referred as Information System. Data processing is basically used for analyzing, processing
image Processing
image Processing   BCIF Image Compresssion Algorithm s alossless image Compression algorithm ,Pleas Help Me weather it can support only 24 bit bmp images
What is procedure
What is procedure  What is procedure in computers? What are the primary categories of procedures
stored procedures
stored procedures  What are stored procedures
stored procedures
stored procedures  What are stored procedures
Call Procedure
Call Procedure        Procedure is a set of SQL statement that perform a logical unit and  task. Stored Procedure can be compiled and executed
Create a Simple Procedure
to create a procedure Abc( ).The SQL stored procedure bodies contain... stored procedure returns you the records from 'Stu_Table... Create a Simple Procedure     
Steps for the payment gateway processing?
Steps for the payment gateway processing?  Steps for the payment gateway processing
request processing in servlets
request processing in servlets  how request processing is done in servlets and jsp   Please visit the following links: JSP Tutorials Servlet Tutorials Here, you will find several examples of processing request
Processing Sequence of DispatcherServlet
In this section, you will get to know about the processing sequence of DispatcherServlet
The product of data processing is
The product of data processing is   The product of data processing is 1. Data 2. Information 3. Software 4. Computer 5. All of the above   Answer: 3. Software
Abort JSP processing
Abort JSP processing  Can I just abort processing a JSP?   Yes. You can put a return statement to abort JSP processing
Speech Processing - Java Beginners
Speech Processing  I want to implement Speech Processing in Java. How can I do It? Please Answer me
text processing program
text processing program  how can i compare letter by letter? what i was trying to do is a program that can define what is root word,prefix and suffix. plz help
Mysql List
Mysql List       Mysql List elaborate you an Query for listing databases, tables, Procedure... illustrate an example from 'Mysql List'. To grasp this example, We show you
Mysql List
Mysql List       Mysql List elaborate you an Query for listing databases,tables,Procedure,columns,usernames and its password. Understand with Example The Tutorial
Call Procedure
Call Procedure        Procedure is a set of SQL statement that perform a logical unit and  task. Stored Procedure can be compiled and executed
image processing in java
image processing in java  public class testing { static BufferedImage image; public static void main(String[] args) throws IOException { ArrayList<Integer> l1=new ArrayList<Integer>(); ArrayList<Integer>
image processing - Java3D
image processing  hii i have to compare 2 images. for this i try to convert image into greyscale. i think the greyscale comparisonn is more effective than that of colour. pls give me the processing details.  Hi friend
 

 

 

DMCA.com