If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > IF & DECLARE statements inside a stored procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-18-11, 08:01
shahare shahare is offline
Registered User
 
Join Date: Dec 2011
Posts: 1
IF & DECLARE statements inside a stored procedure

Hi all

I'm trying to create some IF & DECLARE statements inside stored procedures
and I keep getting error (which are not very helpful).
I even copied samples from books and websites and they didn't work as well.
I'm using mysql version 5.5.16.

I would much appreciate any help on this.

Thank you
Shahar
Reply With Quote
  #2 (permalink)  
Old 12-18-11, 13:30
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Can you post your code and error message so that we can try to help you with this.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 12-18-11, 17:10
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
i'll bet you a doughnut that it's a firewall problem
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #4 (permalink)  
Old 12-19-11, 06:01
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Not so sure about that but without any type of feedback it is not very clear as to the source of the problem. My take is that the DELIMITER has not been set properly and each line is causing an error.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #5 (permalink)  
Old 12-19-11, 06:16
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
this question was posted on multiple forum sites, and on one of them, he came back and said it was a firewall problem

i guess he simply overlooked replying here as well

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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