php3-list | 199807
Date: 07/31/98
- Next message: Tommy Williams: "Re: [PHP3] [Q] Apache, PHP, and MIME types"
- Previous message: Richard Moss: "Re: [PHP3] List Split"
- Maybe in reply to: Justin Foster: "[PHP3] SQL Question"
- Next in thread: Michael J. Miller Jr.: "Re: [PHP3] SQL Question"
- Reply: Michael J. Miller Jr.: "Re: [PHP3] SQL Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 01:43 PM 31/7/98 -0700, you wrote:
>Hello everyone,
>
>Should this statement work as it is written? I keep getting sintax
>errors, so I am assuming that I am missing something minor. Please let
>me know, I have been banging my head on this all morning.
>
>Thanks,
Depends on the Database you are Writing to
e.g, mSQL and mySQL do not support SELECT INTO
where as Oracle DOES
>
>> $ready_sql = "INSERT INTO tblTable (Index, Things) VALUES (SELECT column
FROM tblOtherTable
>>
>> WHERE Stuff = '$Stuff', SELECT anothercolumn FROM
tblOtherTable2
>>
>> WHERE Newstuff = '$NewStuff')";
>>
>
>
>--
>Justin Foster <jfoster <email protected>>
>
><HTML>
>Hello everyone,
>
><P>Should this statement work as it is written? I keep getting sintax errors,
>so I am assuming that I am missing something minor. Please let me
>know, I have been banging my head on this all morning.
>
><P>Thanks,
><BR>
><BLOCKQUOTE TYPE=CITE>
><PRE>$ready_sql = "INSERT INTO tblTable (Index, Things) VALUES (SELECT
column FROM tblOtherTable</PRE>
></BLOCKQUOTE>
>
><BLOCKQUOTE TYPE=CITE>
><PRE> &nbs
p; WHERE Stuff = '$Stuff', SELECT
anothercolumn FROM tblOtherTable2</PRE>
></BLOCKQUOTE>
>
><BLOCKQUOTE TYPE=CITE>
><PRE> &nbs
p; WHERE
Newstuff = '$NewStuff')";</PRE>
></BLOCKQUOTE>
>
>
><P>
>
><P>--
><BR>Justin Foster <jfoster <email protected>>
><BR> </HTML>
>
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
- Next message: Tommy Williams: "Re: [PHP3] [Q] Apache, PHP, and MIME types"
- Previous message: Richard Moss: "Re: [PHP3] List Split"
- Maybe in reply to: Justin Foster: "[PHP3] SQL Question"
- Next in thread: Michael J. Miller Jr.: "Re: [PHP3] SQL Question"
- Reply: Michael J. Miller Jr.: "Re: [PHP3] SQL Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

