MYSQL; IF then SET statement -
MYSQL; IF then SET statement -
can't seem create below statement work, suggestions?
set @input := '1234567'; if length(@input)= 7 set id=@input; end if;
thanks in advance,
rene
try this:
set @input := '1234567'; select if(length(@input)=7, @input, '((something here))') id;
mysql
Comments
Post a Comment