how fix this statement?

Nov 19 2018 1:08 PM
i have problem with Trigger, here my code.  thank myou
  1. BEGIN  
  2. DECLARE sub Varchar(20);  
  3. IF (sub = 'out'THEN  
  4. INSERT INTO Transactionn (id_out, sub) VALUES (id_out, t_status);  
  5.   
  6. END IF  
  7. END  
 

Answers (3)