0
有人可以解釋這將如何工作?任何人都可以解釋這將如何工作? - 如果其他elseif在我的sql
IF (p_market_id <>0) THEN
SET v_cont := CONCAT(v_cont,' and mrkt.location_id = ', p_market_id);
ELSEIF (p_region_id <>0) THEN
SET v_cont := CONCAT(v_cont,' and reg.location_id = ', p_region_id);
ELSE
SET v_cont := CONCAT(v_cont,' and 1=1');
END IF;
第一行是明確的:即,如果market_id <> 0,則v_cont設置爲給 但我想知道的是,將它轉到後續ELSEIF也或者將它來的出?其他的呢?
問候 高塔姆