MySql Error: The table in a stored function/trigger cannot be updated because it is already used by a statement that calls this stored function/trigger
P粉668804228
P粉668804228 2023-10-15 23:34:43
0
2
471

I'm running a MySQL query. However, when adding a new row from the form input, I get this error:

Error: Can't update table 'brandnames' in stored function/trigger because it is 
already used by statement which invoked this stored function/trigger.

From the code:

CREATE TRIGGER `capital` AFTER INSERT ON `brandnames`
FOR EACH
ROW UPDATE brandnames
SET bname = CONCAT( UCASE( LEFT( bname, 1 ) ) , LCASE( SUBSTRING( bname, 2 ) ) )

What does this error mean?

P粉668804228
P粉668804228

reply all(2)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!