MySql错误:无法更新存储函数/触发器中的表,因为它已被调用此存储函数/触发器的语句使用
我正在运行MySQL查询。但是当从表单输入添加新行时,我收到此错误:
Error: Can't update table 'brandnames' in stored function/trigger because it is
already used by statement which invoked this stored function/trigger.
从代码:
CREATE TRIGGER `capital` AFTER INSERT ON `brandnames`
FOR EACH
ROW UPDATE brandnames
SET bname = CONCAT( UCASE( LEFT( bname, 1 ) ) , LCASE( SUBSTRING( bname, 2 ) ) )
这个错误是什么意思?
缥缈止盈
忽然笑
ibeautiful
相关分类