daniel,
Thursday, July 11, 2002, 3:37:07 AM, you wrote:

d> why is it that this doens't work?

Because your syntax is wrong. If you want to use INSERT .. SELECT
statement, please, look at the manual for correct syntax:
           http://www.mysql.com/doc/I/N/INSERT_SELECT.html

d> INSERT INTO mytable (column0, column1, column2, column3, column4) values
d> ($value0, (SELECT id from othertable where login='$ENV{REMOTE_USER}'),
d> $value2, $value3, $value4)";

d> the error i'm getting says that there's an error in my sql syntax near
d> 'select id from othertable...'

d> i'm user perl with 
dbi.pm if that's any help.




-- 
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




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to