先为user表创建一个触发器
begin
     insert into user_sum(username,password) select user.username,user.password from user order by id desc  limit 1 ;

end

触发器的实践案例

INSERT INTO user(username,password) VALUE('hahahahhahahahah',103084);

触发器的实践案例

触发器的实践案例

触发器的实践案例

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-11-04
  • 2021-07-13
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-12-18
  • 2021-12-30
  • 2021-06-09
  • 2021-06-28
  • 2021-11-22
相关资源
相似解决方案