Can MySQL triggers be created with dynamic SQL from within a stored procedure?
问题 Is it possible to create a trigger in MySQL using dynamically generated SQL from within a stored procedure? I am executing other dynamically constructed queries in my procedure by preparing a statement, but when I try the same approach to create a trigger I get the following error: ERROR Code: 1295This command is not supported in the prepared statement protocol yet From Bug #31625, PREPARED STATEMENT syntax does not allow to create TRIGGERS I see other people have been complaining about the