Received: from send205.yahoomail.com (send205.mail.yahoo.com [128.11.68.129]) by hub.org (8.9.2/8.9.1) with SMTP id TAA63718 for ; Wed, 17 Feb 1999 19:45:57 -0500 (EST) (envelope-from peter_garner@yahoo.com) Message-ID: <19990218004614.5114.rocketmail@send205.yahoomail.com> Received: from [208.16.26.172] by send205.mail.yahoo.com; Wed, 17 Feb 1999 16:46:14 PST Date: Wed, 17 Feb 1999 16:46:14 -0800 (PST) From: Peter Garner Subject: Re: [SQL] INSERT query (using insert from a Java application, concerning String input) To: Atika , pgsql-sql@postgreSQL.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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