CREATE TRIGGER Product_Details_tr BEFORE INSERT ON Product_Details FOR EACH ROW SET NEW.User_ID = CURRENT_USER();