mysql - If Statement Syntax error 1064 -
i want test field value , alter append field table if result of test true.
i dont want create procedure etc 1 off script want pass , done with. 1064 error on 'if' int statement bellow.
delimiter $$ if 2 > (select `version` `timecard`.`versioncontrol` `table` = 'employee') alter table `timecard`.`employee` add column ipaddr varchar(16) null after pword; update `timecard`.`versioncontrol` set .`version` = 2 `table` = 'employee'; end if $$ delimiter ;
Comments
Post a Comment