X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1072CD1B50B for ; Fri, 14 Nov 2003 16:06:45 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 08816-10 for ; Fri, 14 Nov 2003 12:06:14 -0400 (AST) Received: from mail.sistecs.de (unknown [80.190.135.134]) by svr1.postgresql.org (Postfix) with ESMTP id E9B4AD1B50C for ; Fri, 14 Nov 2003 12:05:57 -0400 (AST) Received: from pd9e4e76f.dip.t-dialin.net ([217.228.231.111] helo=BARCELONA) by mail.sistecs.de with asmtp (Exim 3.34 #4 (Debian)) id 1AKgS4-0003f3-00 for ; Fri, 14 Nov 2003 17:05:40 +0100 From: "Jan Klostermann" To: Subject: Parameterized queries Date: Fri, 14 Nov 2003 17:05:46 +0100 Message-ID: <001b01c3aac9$2a7d77c0$f564a8c0@BARCELONA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/24 X-Sequence-Number: 4582 Hello, I would like to know, if there exists a way in PostgreSQL to insert data not exclusively via the SQL-query-string but using a direct data interface, thus avoiding parsing the data into string and then back into binary data representation (e.g. Double). What I would like to use is a query like this: INSERT INTO table (number1, number2) VALUES (?,?) Before executing the query the command structure would be fill with the parameters for the 2 values (e.g. 3.33 and 5.555) and then there would follow the execution, where the query parser would replace the "?" with the current data of the parameters and execute the appopriate query. Unfortunately I cannot find anything about query-contructions with question marks ("?"), therefore I am already wondering if this way of transfering data exists with PostgreSQL!? Is there anybody out there, who can help me with this? Is there another way of efficiently transfering data, avoiding parsing back and forth? Jan Klostermann PS: I tried to do it via the ODBC interface and it did not work. Then I scanned through the documentation, incl. libpq and did not find anything related.