Article View: comp.databases.ms-access
Article #102Re: Access/ODBC problem
From: Dave Roth
Date: Tue, 08 Oct 1996 00:00
Date: Tue, 08 Oct 1996 00:00
24 lines
1612 bytes
1612 bytes
In article <53adhb$5cu@news.NetVision.net.il>
yossik@accentsoft.com (Yossi Konijn) wrote:
> Hi,
>
> I've been creating a PERL program that inputs and outputs
information
> from an Access 7.0 database via ODBC. All my SQL queries worked
> perfectly up until the moment I tried using WHERE in the statement.
> This gives my an error message about missing parameters. However,
the
> same query from within Acess works perfectly. Any idea?
>
> The query is -
>
> SELECT * FROM TSCustomers WHERE PhoneNumber1 = "4104842172";
^^^^^^^^^^^^
You need to replace the double quotes with single quotes. Your query
should look like:
SELECT * FROM TSCustomers WHERE PhoneNumber1 = '4104842172'
If the value is a number (as opposed to a string) you may not even
need the quotes; I can't remember.
dave
Technical Details
Message-ID:
<53cdm0$7nm@mets.tcimet.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<53adhb$5cu@news.NetVision.net.il>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10259a,2c8a498516eca8d5 X-Google-Attributes: gid10259a,public X-Google-Thread: ff0ac,2c8a498516eca8d5 X-Google-Attributes: gidff0ac,public X-Google-Thread: 11355a,2c8a498516eca8d5 X-Google-Attributes: gid11355a,public X-Google-Thread: fa0ae,2c8a498516eca8d5 X-Google-Attributes: gidfa0ae,public From: rothd@roth.net (Dave Roth) Subject: Re: Access/ODBC problem Date: 1996/10/08 Message-ID: <53cdm0$7nm@mets.tcimet.net> X-Deja-AN: 187466421 distribution: world references: <53adhb$5cu@news.NetVision.net.il> organization: TCI Cable - East Lansing reply-to: rothd@roth.net newsgroups: comp.databases.ms-access,bit.listserv.sqlinfo,comp.lang.perl,comp.lang.perl.misc