0

I keep getting the following error:

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''v_id' varchar(20) null , OUT 'v_status' varchar(40)) IS Begin ' at line 2

It is the first time I'm using MySql and the little pl sql knowledge isn't really helping.

delimiter //
->CREATE PROCEDURE dbi292801.campsite
(IN 'v_id' varchar(20) null ,
               OUT 'v_status' varchar(40)) IS
 Begin 
               SELECT status into v_status FROM participant WHERE RFID = v_id;
              if (v_status = "in", v_status := "at campsite", v_status := 'at event');
            End if;
            End //

If you have an idea to solve this, please reply!!

Isaac Bennetch
  • 11,830
  • 2
  • 32
  • 43

0 Answers0