By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

trigger for creating a csv file

P: 2
i am new in triggers.
i want a trigger that would fire when i insert rows in table and would create a csv file of the datas in the table.
is it possible in mysql?
i wrote:

create trigger trg_af_ins_test1 after insert on test1
select * into outfile 'trigfile.csv'
fields terminated by '\t'
lines terminated by '\n'
from emp;

please help.
thanx in advance.
Feb 26 '12 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,035
change the line "FROM EMP;" to "FROM test1"...
Mar 18 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.