trigger
ERROR 1442 (HY000): Can't update table '...' in stored function/trigger because it is already used
Mysql • liuliangsong 发表了文章 • 0 个评论 • 13574 次浏览 • 2016-12-22 16:31
[h2]一、MySQL错误现象:[/h2]MySQL执行创建的触发器时,报如下错误:[pre=sql]ERROR 1442 (HY000): Can't update table 'tmp' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.[/pre]
下面为错误触发器的创建过程:[h3]1、创建测试表格:[/h3][pre=sql]drop table if exists tmp;
create table tmp (id int, n1 int 查看原文 »
MySQL触发器用法详解
Mysql • liuliangsong 发表了文章 • 0 个评论 • 45449 次浏览 • 2016-12-22 10:53
[h2]一、MySQL触发器创建:[/h2][h3]1、MySQL触发器的创建语法:[/h3][pre=sql]CREATE [DEFINER = { 'user' | CURRENT_USER }]
TRIGGER trigger_name
trigger_time trigger_event
ON table_name
FOR EACH ROW
[trigger_order]
trigger_body[/pre][h3] [/h3][h3]2、MySQL创建语法中的关键词解释:[/h3][table][tr][th]字段[/th][th]含义[/th][th]可能的值[/th][/tr][tr][td]DEFINER= 查看原文 »
ERROR 1442 (HY000): Can't update table '...' in stored function/trigger because it is already used
Mysql • liuliangsong 发表了文章 • 0 个评论 • 13574 次浏览 • 2016-12-22 16:31
[h2]一、MySQL错误现象:[/h2]MySQL执行创建的触发器时,报如下错误:[pre=sql]ERROR 1442 (HY000): Can't update table 'tmp' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.[/pre]
下面为错误触发器的创建过程:[h3]1、创建测试表格:[/h3][pre=sql]drop table if exists tmp;
create table tmp (id int, n1 int 查看原文 »
MySQL触发器用法详解
Mysql • liuliangsong 发表了文章 • 0 个评论 • 45449 次浏览 • 2016-12-22 10:53
[h2]一、MySQL触发器创建:[/h2][h3]1、MySQL触发器的创建语法:[/h3][pre=sql]CREATE [DEFINER = { 'user' | CURRENT_USER }]
TRIGGER trigger_name
trigger_time trigger_event
ON table_name
FOR EACH ROW
[trigger_order]
trigger_body[/pre][h3] [/h3][h3]2、MySQL创建语法中的关键词解释:[/h3][table][tr][th]字段[/th][th]含义[/th][th]可能的值[/th][/tr][tr][td]DEFINER= 查看原文 »
ERROR 1442 (HY000): Can't update table '...' in stored function/trigger because it is already used
Mysql • liuliangsong 发表了文章 • 0 个评论 • 13574 次浏览 • 2016-12-22 16:31
[h2]一、MySQL错误现象:[/h2]MySQL执行创建的触发器时,报如下错误:[pre=sql]ERROR 1442 (HY000): Can't update table 'tmp' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.[/pre]
下面为错误触发器的创建过程:[h3]1、创建测试表格:[/h3][pre=sql]drop table if exists tmp;
create table tmp (id int, n1 int 查看原文 »
MySQL触发器用法详解
Mysql • liuliangsong 发表了文章 • 0 个评论 • 45449 次浏览 • 2016-12-22 10:53
[h2]一、MySQL触发器创建:[/h2][h3]1、MySQL触发器的创建语法:[/h3][pre=sql]CREATE [DEFINER = { 'user' | CURRENT_USER }]
TRIGGER trigger_name
trigger_time trigger_event
ON table_name
FOR EACH ROW
[trigger_order]
trigger_body[/pre][h3] [/h3][h3]2、MySQL创建语法中的关键词解释:[/h3][table][tr][th]字段[/th][th]含义[/th][th]可能的值[/th][/tr][tr][td]DEFINER= 查看原文 »