MySQL - Trigger for updating same table after insert

前端 未结 6 1724
长情又很酷
长情又很酷 2020-11-22 15:39

Here\'s what I\'m trying to do:

When there\'s a new INSERT into the table ACCOUNTS, I need to update the row in ACCOUNTS where

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 16:11

    On the last entry; this is another trick:

    SELECT AUTO_INCREMENT FROM information_schema.tables WHERE table_schema = ... and table_name = ...
    

提交回复
热议问题