Quote:
Originally posted by geepee
if ( (select count(*) from x where Y = 1) > 0) then
/*
** Then do you logic
*/
end if;
|
(First, excuse my english...)
Sorry, but a can't run this statement:
/*************************************************
if EXISTS(select 1 from ng_desarrollo.agencias where age_id = 51) then
Select 1
elseif
Select 2
end if;
*************************************************/
Can you tell me why don't run? Or tell me how I must write this statement? Thank you.