
October 7th, 2005, 12:35 PM
|
|
Contributing User
|
|
Join Date: May 2003
Posts: 388
Time spent in forums: 1 Day 3 h 4 sec
Reputation Power: 6
|
|
|
Mysql OUTFILE Use System Date.txt
Below is my test.sh and my referral.sql now i want the .txt file to be named
the systemdate and the timestamp .txt
ex 20051009235959.txt somthing like that
test.sh
#!/bin/bash
/usr/bin/mysql -u root ehpadmin </usr/etc/referral.sql
referral.sql
SELECT * INTO OUTFILE '/tmp/referral.txt'
FIELDS TERMINATED BY ';' LINES TERMINATED BY '\N' FROM Referral_Authorization
my test.sh calls my referral.sql
thanks for help
Last edited by nyce405 : October 10th, 2005 at 09:52 AM.
|