Yelenna2003 has asked for the wisdom of the Perl Monks concerning the following question:
Debug result: database Edabase successfully opened. SQL fail "1":-3010MicrosoftODBC Microsoft Access drive insufficient parametersCexpected is 2. 10n at C:\WINDOWS\Desktop\trydbi2.pl line #. Process terminated with exit code 0 I also tried another way:#script 1: use Win32::ODBC; $DSN="Alex"; $DATABASE_NAME="Edabase"; unless ($db=new Win32::ODBC($DSN)) { print " Error: Cant't open database [$DATABASE_NAME] ! +.\n"; exit(8); } print "database [$DATABASE_NAME] successfully opened. \n"; $ID=1234567890; $Folder="Product"; $Webpage="B2"; $sqlinsert ="INSERT INTO T_table VALUES($ID,$Folder, $Webpage)"; $rc=$db->Sql($sqlinsert); die qq(SQL fail "$rc":), $db->Error(),qq(n) if $rc; $db->Close();
Debug result: ......forgot to load "values"?.... I can not understand that. Please help me. Helen Cook#script 2: use Win32::ODBC; $DSN="Alex"; $DATABASE_NAME="Edabase"; unless ($db=new Win32::ODBC($DSN)) { print " Error: Cant't open database [$DATABASE_NAME] ! +.\n"; exit(8); } print "database [$DATABASE_NAME] successfully opened. \n"; $ID=1234567890; $Folder="Product"; $Webpage="B2"; INSERT INTO T_table VALUES($ID,$Folder, $Webpage0; $db->Close();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to insert more than one column into Access database table?
by Rich36 (Chaplain) on Oct 08, 2002 at 21:30 UTC | |
by Yelenna2003 (Initiate) on Oct 17, 2002 at 01:27 UTC | |
Re: How to insert more than one column into Access database table?
by robartes (Priest) on Oct 08, 2002 at 21:32 UTC | |
by Yelenna2003 (Initiate) on Oct 08, 2002 at 21:59 UTC | |
by runrig (Abbot) on Oct 08, 2002 at 22:12 UTC | |
by rdfield (Priest) on Oct 09, 2002 at 09:09 UTC |