[plug] mysql query questoin
Anne Busby
anne at busby.net
Sun Jan 19 21:37:08 WST 2003
Yes.
INSERT INTO <db2>.<table2> SELECT <fields> FROM <db1>.<table1>;
AnneB
On Sun, 2003-01-19 at 21:30, Jon Miller wrote:
> Would table2 be in the form of <database2.table2> because the results
> from <table1> is to go into a separate database and it's tables).
>
>
> Thanks
>
>
> On Sun, 2003-01-19 at 21:09, Anne Busby wrote:
> > Try
> >
> > INSERT INTO <table2> SELECT <fields> FROM <table>;
> >
> > Anne
> >
> > On Sun, 2003-01-19 at 20:52, Jon Miller wrote:
> > > I'm trying to do a query in mysql whose results I want to put in another
> > > mysql database/table.
> > > The query part I have that correct as the results are right, from there
> > > I'm lost. Does anyone know who this is suppose to work?
> > > is it the SELECT .... INSERT syntax?
> > >
> > > Thanks
> > > --
> > > Jon Miller <jlmiller at mmtnetworks.com.au>
> > > MMT Networks Pty Ltd
> > >
> > >
> > >
> --
> Jon Miller <jlmiller at mmtnetworks.com.au>
> MMT Networks Pty Ltd
>
>
>
--
Regards,
Anne Busby
E-Mail: mailto:anne at busby.net
Web: http://www.busby.net
More information about the plug
mailing list