blackadder has asked for the wisdom of the Perl Monks concerning the following question:
This bit doen't work (my $sql= “select srv_id from server_tbl where srv_name='$srv'”); Can someone please get me out of my misery, and inform me why.use strict; use Win32; use warnings 'all'; use Win32::ODBC; my $dsn = "test"; my $srv_tbl = "server_tbl"; my $drv_tbl = "drives_tbl"; my $srv = shift @ARGV; my $loc = shift @ARGV; my $notes = pop @ARGV; my $db = new Win32::ODBC( $dsn ) || die "\nError! $^E:$!\n"; $db->Sql("INSERT INTO $srv_tbl (srv_name, location, notes) VALUES ('$s +rv','$loc','$notes')"); my $sql= “select srv_id from server_tbl where srv_name='$srv'”; #this +bit doesn’t work print "Index Key: $sql\n"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MS Access entry index key values
by Rich36 (Chaplain) on Jul 09, 2002 at 16:22 UTC | |
|
Why not DBI and ODBC DBD?
by aufrank (Pilgrim) on Jul 09, 2002 at 18:11 UTC | |
|
Re: MS Access entry index key values
by Moonie (Friar) on Jul 09, 2002 at 16:16 UTC | |
|
Re: MS Access entry index key values
by LanceDeeply (Chaplain) on Jul 09, 2002 at 22:09 UTC | |
by Anonymous Monk on Jul 11, 2002 at 08:02 UTC |