MySQL Forums
Forum List  »  Stored Procedures

Re: Nested If problem
Posted by: Peter Brawley
Date: April 26, 2016 05:49PM

if p_overdueOnly = false THEN
  if p_countryID = "DE" THEN
    SELECT 1;
  elseif p_countryID = "BE" THEN
    SELECT 3;
  end if;                -- NEEDS TERMINATING SEMICOLON
elseif p_overdueOnly = true THEN
  SELECT 2;
END if;  

Options: ReplyQuote


Subject
Views
Written By
Posted
3047
April 26, 2016 02:10PM
Re: Nested If problem
727
April 26, 2016 05:49PM
692
April 26, 2016 11:20PM
1083
April 27, 2016 05:29AM
767
April 27, 2016 08:14AM


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.