0 like 0 dislike
1.3k views
TRIGGER that creates a new text file on INSERT
in Education & Reference by | 1.3k 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 (620 points) | 79 views
0 like 0 dislike
1 answer
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,225 questions
1,370 answers
559 comments
2,099 users