From: Peter Garner <peter_garner@yahoo.com>
To: Atika <agoswa@essex.ac.uk>
To: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] INSERT query (using insert from a Java application, concerning String input)
Date: Wed, 17 Feb 1999 16:46:14 -0800 (PST)
Message-ID: <19990218004614.5114.rocketmail@send205.yahoomail.com> (raw)
Hi Atika! :-)
> I am basically trying to do something like this:
>
> String input = "This is a String";
>
> myConn.updateQuery("insert into myDB values(input)");
>
> but get an error when I run it saying:
> ERROR: attribute input not found
> java.sql.SQLException: ERROR: attribute input not found
Try
String input = "This is a String"
String query = insert into myDB value ('" + input + "')"
myConn.updateQuery(query);
==
Peace,
Peter
We are Microsoft of Borg, you will be assimilated!!!
Resistance is fut... ***BZZZRT*** THUD!!!
[General Protection Fault in MSBorg32.DLL]
Please contact the vendor for more information
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: peter_garner@yahoo.com, agoswa@essex.ac.uk, pgsql-sql@postgreSQL.org
Subject: Re: [SQL] INSERT query (using insert from a Java application, concerning String input)
In-Reply-To: <19990218004614.5114.rocketmail@send205.yahoomail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox