MySQL Forums
Forum List  »  MySQL Shell

Error 1064
Posted by: Rahul Patel
Date: December 02, 2021 01:13AM

I am getting error code 1064 for following snippet, can anyone please help:

begin
delimiter //
set @file_no = 2;
set @list_name = '0,2,1';
set @a = find_in_set(@file_no, @list_name);
-- select @a;
if @a > 0 then select 1;
else select 2;
end if;
end //

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Error 1064
570
December 02, 2021 01:13AM
443
December 02, 2021 09:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.