Avatar of andieje
andieje

asked on 

AFTER INSERT triggers and load data

Hi

How do AFTER INSERT triggers work with batch loading of data such as

1) mysql load data command
2) multirow insert command e.g. insert into table(a,b) values(1,2), (3,4)

Please could you state whether each method calls the trigger after each individual insert or after the all rows have been inserted. I've never written a trigger but I will have a go now to investigate this myself.

Much obliged
MySQL Server

Avatar of undefined
Last Comment
dqmq
ASKER CERTIFIED SOLUTION
Avatar of dqmq
dqmq
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
MySQL Server
MySQL Server

MySQL is an open source, relational database management system that runs as a server providing multi-user access to a number of databases. Acquired by Oracle in 2009, it is frequently used in combination with PHP installations, powering most of the WordPress installations.

49K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo