Claim your Biolink Click Here
0 like 0 dislike
1.9k views
TRIGGER that creates a new text file on INSERT
in Education & Reference by | 1.9k views

1 Answer

0 like 0 dislike
DELIMITER $$
CREATE TRIGGER test_trigger
AFTER INSERT ON test_table
FOR EACH ROW
BEGIN
SELECT * FROM test_table INTO OUTFILE '/var/lib/mysql/test/testfile.txt';
END $$
DELIMITER ;
by

Related questions

0 like 0 dislike
1 answer
3 like 0 dislike
1 answer
2 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Feb 17, 2014 in Education & Reference by Simmi (830 points) | 258 views
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Sep 15, 2017 in Education & Reference by Krish (1.1k points) | 331 views
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,308 questions
1,469 answers
568 comments
4,809 users