Mysql trigger is not working -


I created the following triggers but it is not executed after inserting the data

  DELIMITER / For each line / ano_sale_join at INSERT, add TRIGGER sale_after_insert to ano_sale_join.database_inventory (sale_id) values ​​(NEW.sale_id); INOSTO ano_sale_join.database_inventory (sales_prod_id) value (new cyan_prod_id); END // DELIMITER; The    

is the wrong reference to your database and <> table In the statement swap found

this code block is incorrect:

  ano_sale_join.database_inventory (sale_id) values ​​in INSERT (NEW .sale_id); INOSTO ano_sale_join.database_inventory (sales_prod_id) value (new cyan_prod_id);   

Change them to:

  database_inventory.no_sale_join (sell_id) included in prices (New Cycle_id); Database_Inventory.Now_Sale_Jian (Sales_products_id) new entries in values ​​(New Sial_Prop_ID); Refer to   

:



Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -