Re: how to export data from multiple tables

2003-10-09 Thread Nitin
these are linux machines on internet, one is web server and another db
server, with real IPs. but I may optionally want to export data to my PC,
also on internet connected through LAN to my web server and db server.

thanx for ur time
Nitin

- Original Message - 
From: Christensen, Dave [EMAIL PROTECTED]
To: 'Nitin' [EMAIL PROTECTED]; Mysql List
[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 10:00 PM
Subject: RE: how to export data from multiple tables


 What machines are you working with at each end?  Internal network?

 -Original Message-
 From: Nitin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 08, 2003 10:19 AM
 To: Andy Eastham; Mysql List
 Subject: Re: how to export data from multiple tables


 any idea, how to export data to a file on the remote machine?

 thanx for the help anyway
 Nitin

 - Original Message - 
 From: Andy Eastham [EMAIL PROTECTED]
 To: Mysql List [EMAIL PROTECTED]
 Sent: Tuesday, October 07, 2003 9:49 PM
 Subject: RE: how to export data from multiple tables


  Nitin,
 
  Create a temporary table, then select each table into it in turn, then
  output that to the file?
 
  Andy
 
   -Original Message-
   From: Nitin [mailto:[EMAIL PROTECTED]
   Sent: 07 October 2003 11:40
   To: [EMAIL PROTECTED]
   Subject: how to export data from multiple tables
  
  
   Hi all,
  
   I've got a small problem (hope it's very small). Could any of you
   suggest me how to select my data into a simple text file from
   multiple tables (selected with union)!
  
   I've tried:
  
   select field-list into outfile filename from table1
   union
   select field-list into outfile filename from table2
   union
   select field-list into outfile filename from table3
  
   It says check your version manualblah blah
  
   Any idea, how to do it?
  
   Thanx in advance
   Nitin
 
 
 
  --
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]
 



 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: how to export data from multiple tables

2003-10-08 Thread Nitin
any idea, how to export data to a file on the remote machine?

thanx for the help anyway
Nitin

- Original Message - 
From: Andy Eastham [EMAIL PROTECTED]
To: Mysql List [EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 9:49 PM
Subject: RE: how to export data from multiple tables


 Nitin,

 Create a temporary table, then select each table into it in turn, then
 output that to the file?

 Andy

  -Original Message-
  From: Nitin [mailto:[EMAIL PROTECTED]
  Sent: 07 October 2003 11:40
  To: [EMAIL PROTECTED]
  Subject: how to export data from multiple tables
 
 
  Hi all,
 
  I've got a small problem (hope it's very small). Could any of you
  suggest me how to select my data into a simple text file from
  multiple tables (selected with union)!
 
  I've tried:
 
  select field-list into outfile filename from table1
  union
  select field-list into outfile filename from table2
  union
  select field-list into outfile filename from table3
 
  It says check your version manualblah blah
 
  Any idea, how to do it?
 
  Thanx in advance
  Nitin



 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: how to export data from multiple tables

2003-10-08 Thread Christensen, Dave
What machines are you working with at each end?  Internal network?

-Original Message-
From: Nitin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2003 10:19 AM
To: Andy Eastham; Mysql List
Subject: Re: how to export data from multiple tables


any idea, how to export data to a file on the remote machine?

thanx for the help anyway
Nitin

- Original Message - 
From: Andy Eastham [EMAIL PROTECTED]
To: Mysql List [EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 9:49 PM
Subject: RE: how to export data from multiple tables


 Nitin,

 Create a temporary table, then select each table into it in turn, then 
 output that to the file?

 Andy

  -Original Message-
  From: Nitin [mailto:[EMAIL PROTECTED]
  Sent: 07 October 2003 11:40
  To: [EMAIL PROTECTED]
  Subject: how to export data from multiple tables
 
 
  Hi all,
 
  I've got a small problem (hope it's very small). Could any of you 
  suggest me how to select my data into a simple text file from 
  multiple tables (selected with union)!
 
  I've tried:
 
  select field-list into outfile filename from table1
  union
  select field-list into outfile filename from table2
  union
  select field-list into outfile filename from table3
 
  It says check your version manualblah blah
 
  Any idea, how to do it?
 
  Thanx in advance
  Nitin



 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



how to export data from multiple tables

2003-10-07 Thread Nitin
Hi all,

I've got a small problem (hope it's very small). Could any of you suggest me how to 
select my data into a simple text file from multiple tables (selected with union)!

I've tried:

select field-list into outfile filename from table1
union
select field-list into outfile filename from table2
union
select field-list into outfile filename from table3

It says check your version manualblah blah

Any idea, how to do it?

Thanx in advance
Nitin

Re: how to export data from multiple tables

2003-10-07 Thread Victoria Reznichenko
Nitin [EMAIL PROTECTED] wrote:
 
 I've got a small problem (hope it's very small). Could any of you suggest me how to 
 select my data into a simple text file from multiple tables (selected with union)!
 
 I've tried:
 
 select field-list into outfile filename from table1
 union
 select field-list into outfile filename from table2
 union
 select field-list into outfile filename from table3
 
 It says check your version manualblah blah
 

What is the version of MySQL server? UNION is supported from 4.0.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: how to export data from multiple tables

2003-10-07 Thread Nitin
union works fine but with union 'into outfile' doesn't work

anyway mysql ver is 4.0.14

thanx for ur time anyway
Nitin

- Original Message - 
From: Victoria Reznichenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 4:12 PM
Subject: Re: how to export data from multiple tables


 Nitin [EMAIL PROTECTED] wrote:
 
  I've got a small problem (hope it's very small). Could any of you
suggest me how to select my data into a simple text file from multiple
tables (selected with union)!
 
  I've tried:
 
  select field-list into outfile filename from table1
  union
  select field-list into outfile filename from table2
  union
  select field-list into outfile filename from table3
 
  It says check your version manualblah blah
 

 What is the version of MySQL server? UNION is supported from 4.0.


 -- 
 For technical support contracts, goto https://order.mysql.com/?ref=ensita
 This email is sponsored by Ensita.net http://www.ensita.net/
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
  / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
 /_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
___/   www.mysql.com





 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: how to export data from multiple tables

2003-10-07 Thread Victoria Reznichenko
Nitin [EMAIL PROTECTED] wrote:
 union works fine but with union 'into outfile' doesn't work

UNION with SELECT .. INTO OUTFILE works from version 4.1

mysql SELECT * FROM t1 UNION SELECT * FROM t2 INTO OUTFILE '/tmp/tmp.txt';
Query OK, 4 rows affected (0.00 sec)


 
 anyway mysql ver is 4.0.14
 
 thanx for ur time anyway
 Nitin
 
 - Original Message ---

-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: how to export data from multiple tables

2003-10-07 Thread Nitin
can u suggest any workaround?

anyway thanx for help
Nitin

- Original Message - 
From: Victoria Reznichenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 8:32 PM
Subject: Re: how to export data from multiple tables


 Nitin [EMAIL PROTECTED] wrote:
  union works fine but with union 'into outfile' doesn't work

 UNION with SELECT .. INTO OUTFILE works from version 4.1

 mysql SELECT * FROM t1 UNION SELECT * FROM t2 INTO OUTFILE
'/tmp/tmp.txt';
 Query OK, 4 rows affected (0.00 sec)


 
  anyway mysql ver is 4.0.14
 
  thanx for ur time anyway
  Nitin
 
  - Original Message ---

 -- 
 For technical support contracts, goto https://order.mysql.com/?ref=ensita
 This email is sponsored by Ensita.net http://www.ensita.net/
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
  / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
 /_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
___/   www.mysql.com





 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: how to export data from multiple tables

2003-10-07 Thread Andy Eastham
Nitin,

Create a temporary table, then select each table into it in turn, then
output that to the file?

Andy

 -Original Message-
 From: Nitin [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2003 11:40
 To: [EMAIL PROTECTED]
 Subject: how to export data from multiple tables


 Hi all,

 I've got a small problem (hope it's very small). Could any of you
 suggest me how to select my data into a simple text file from
 multiple tables (selected with union)!

 I've tried:

 select field-list into outfile filename from table1
 union
 select field-list into outfile filename from table2
 union
 select field-list into outfile filename from table3

 It says check your version manualblah blah

 Any idea, how to do it?

 Thanx in advance
 Nitin



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]