MySQL Forums
Forum List  »  Stored Procedures

Re: if condition
Posted by: Jay Pipes
Date: November 13, 2005 11:52PM

Roland, don't you seem to remember that EXISTS did indeed work in SPs?

Srivats,

I guess I was mistaken, though I seem to remember it working. What version of MySQL are you using? Also, did you realize that there is no reason at all to use the EXISTS as you have it in the stored procedure. If the UPDATE statement does not find any records for the WHERE condition, nothing will happen.

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Views
Written By
Posted
10595
November 11, 2005 06:55AM
3713
November 11, 2005 06:23PM
2770
November 13, 2005 10:34PM
2587
November 13, 2005 10:37PM
2391
November 14, 2005 02:39AM
2296
November 14, 2005 09:51AM
2175
November 15, 2005 03:14AM
2196
November 15, 2005 09:13AM
2157
November 15, 2005 12:50PM
2201
November 13, 2005 10:57PM
Re: if condition
2008
November 13, 2005 11:52PM
1939
November 14, 2005 01:26AM
2051
November 14, 2005 06:50AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.