Click here to Skip to main content
15,908,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 1 quesiton How Trigger can Call Stored procedure ..
like i have trigger that calculating somthing and i have procedure that cheks if there is name like that it will sum it if not there will be new record
so i want to trigger call stored procedure can you give me some code
Posted
Comments
ZurdoDev 19-Jun-15 7:14am    
Do you know how to call a SP? Where are you stuck?
GTR0123 19-Jun-15 7:16am    
i want peace Of code example that goes in trigger to call Stored procedure
ZurdoDev 19-Jun-15 7:20am    
Yes, you already asked that. There are tons of samples online, just wondering where you are stuck.
GTR0123 19-Jun-15 7:21am    
i don't even get beacouse there wasn't any mysql code :/
virusstorm 19-Jun-15 7:24am    
Take a look at this:
http://dba.stackexchange.com/questions/10657/call-a-stored-procedure-from-a-trigger

1 solution

I suggest you read some tutorial on triggers basics and when they execute, and syntax used to create them.
This is example for PL SQL tutorial, very good one i used it to learn it:
http://www.tutorialspoint.com/plsql/plsql_triggers.htm[^]
So calling procedure inside trigger is simple, you just write is as 1 line statement like any other, procedure name and input parameters if any and that's it.
Hope I helped.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900