IT Community - Software Programming, Web Development and Technical Support

How to call the procedure in Mysql...?

This is a discussion on How to call the procedure in Mysql...? within the Database Support forums, part of the Web Development category; hi... How to call the procedure within another procedure in Mysql? Regards, S.Ashokkumar...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-08-2007, 08:19 AM
write2ashokkumar write2ashokkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 85
write2ashokkumar is on a distinguished road
Default How to call the procedure in Mysql...?

hi...

How to call the procedure within another procedure in Mysql?

Regards,
S.Ashokkumar
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-16-2007, 01:37 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How to call the procedure in Mysql...?

hi ashok,
is there any tedious things?

i think this will work fine

CREATE DEFINER=`root`@`%` PROCEDURE `sp_test2`
BEGIN
CALL sp_test1();
END;
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-05-2007, 11:47 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 386
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: How to call the procedure in Mysql...?

Hi jeyaseelan,

Yes offcourse its not a tedious one for calling Stored Procedure or a Stored Function, its a simple one as u said.

But a small doubt. what does it mean by DEFINER=`root`@`%' in the given code.
__________________
-Murali..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-06-2007, 02:34 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How to call the procedure in Mysql...?

Hi,
DEFINER=`root`@`%` - to define the username(root) of the server

i think it is not necessary.

without of this it can works
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-11-2007, 12:12 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 386
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: How to call the procedure in Mysql...?

I could not able to compile my procedure code using DEFINER=`root`@`%` ?

Iam using Toad for Mysql editor for connecting mysql Database.
__________________
-Murali..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between call by value and call by reference amansundar Java Programming 2 09-18-2007 01:34 AM
Can a stored procedure call itself or recursive stored procedure? How many level SP n H2o Database Support 1 08-03-2007 10:55 AM
Function call and System call vigneshgets Operating Systems 1 08-01-2007 06:18 AM
How Do I Call Java from C? kingmaker C and C++ Programming 1 07-30-2007 07:58 AM
How to call stored procedure using HTTP SOAP? oxygen XML and SOAP 1 07-26-2007 04:28 AM


All times are GMT -7. The time now is 08:44 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0