if statement - MySQL IF IS NULL ERROR -
i want test if select-statement null i'am failing case analysis:
set @dublicate = null; if @dublicate null select * mysql.user; end if;
this should ever return selection following error:
#1064 - have error ... near 'if @dublicate null select * mysql.user; end if' @ line 2
and dont know whats wrong.
many in advance
killermelone
it working database put query within begin
, end
create procedure `new_procedure` () begin declare dublicate text default null; set dublicate := null; if (dublicate null) select * destinations; end if; end
Comments
Post a Comment