此mysql触发器get me this error子查询返回多行

czq61nw1  于 2021-06-18  发布在  Mysql
关注(0)|答案(0)|浏览(248)
DELIMITER $$
CREATE TRIGGER Product_Trigger
    AFTER UPDATE ON PRODUCT
    FOR EACH ROW
BEGIN
    INSERT INTO AUDITTRAIL
    SET activity = 'updated Product',
     employeeName = (select (select concat(firstName,' ',LastName) from employee) from userAccount where accountstatus = 1),
        employeeID = (select employeeID from userAccount where accountStatus=1),
        activityDate = NOW();
END$$
DELIMITER ;

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题