Discipulus has asked for the wisdom of the Perl Monks concerning the following question:
It dont wont to run with '$a1', "$a1", ("$a1", \'$a1\'use Win32::ODBC(); my($db) = new Win32::ODBC('viniprova'); $a1='nome'; $a2='categoria'; $a3='item'; $a4='bianco'; my $query2= q! INSERT INTO vini ('$a1', '$a2') VALUES ('$a3', '$a4')!; $db->Sql($query2); $db->Close(); print "errore: ".Win32::ODBC::Error()."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: win32::ODBC passing values to Sql statment
by Tanalis (Curate) on Dec 20, 2002 at 13:08 UTC | |
by Discipulus (Canon) on Dec 20, 2002 at 13:11 UTC | |
|
Re: win32::ODBC passing values to Sql statment
by CountZero (Bishop) on Dec 20, 2002 at 20:30 UTC | |
by pfaut (Priest) on Dec 20, 2002 at 20:44 UTC |