0619Zzz 2021-07-18 14:06 采纳率: 0%
浏览 74

在Navicat中使用触发器每次一直报错1064

想用触发器实现两个表同步增加数据 本来用的测试表 弄成了 让后在作完新表添加触发器 添加不了了 然后我又换的语句也是不行都报错1064 看一下哪个地方出错了
BEGIN
INSERT INTO person(person_number,student_name,student_phone,student_class,student_year) SELECT student_number,student_name,student_phone,student_class,student_year FROM student
WHERE not exists (select * from person where person.person_number = student.student_number);
END

BEGIN
INSERT INTO person (student_number,student_name,student_phone,student_class,student_year)
VALUES (new.student_number,new.student_name,new.student_phone,new.student_class,new.student_year);
END

img

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 请详细说明问题背景 10月25日
      • 创建了问题 7月18日

      悬赏问题

      • ¥15 easyclick重启app
      • ¥15 Python求质数问题
      • ¥15 ros系统里Python版本问题
      • ¥15 不兼容驱动程序删不了,内核隔离打不开
      • ¥15 Centos7重启网卡自动down,只能手动up
      • ¥15 multisim用74ls148做一个5号病号呼叫系统
      • ¥15 单片机,传感器,LCD1602
      • ¥15 关于adams 批处理仿真时间太长的问题
      • ¥15 fate部署问题请求帮助
      • ¥15 关于#arcpy#的问题:arcpy栅格计算器批处理(语言-python)