If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Mysqldump

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-04, 01:56
mickykt mickykt is offline
Registered User
 
Join Date: Mar 2003
Location: Singapore
Posts: 200
Mysqldump

Hi all,

1.I want to dump the output of a query to a file,I am using
Mysql <batch.sql> output.txt ,where batch.sql has the select statement.
Till here its fine,but the coulmn name also appears in the output file.Is there a way I can get rid of this without manually editing this.

2.I wanted to use mysqldump which was better but the query happened to be a join between two tables,so am forced to use a batch file.

Table A Table B
------------------ ---------------------------
ID Name ID Time Shift Grp
-- --------- -- ----- ----- ---
1 Mike 1 10:00 2 3
2 Lal 2 11:00 3 3
3 Steven 1 11:00 2 3
4 Hari 3 11:00 2 1

I want the output to be as

Mike 10:00 2 3
Lal 11:00 3 3
Mike 11:00 2 3
Steven 11:00 2 1

I would appreciate a help.

Thanks Micky
Reply With Quote
  #2 (permalink)  
Old 10-13-04, 17:32
cristiu cristiu is offline
Registered User
 
Join Date: Sep 2004
Posts: 46
Try PhpMyAdmin...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On