Skip site navigation (1) Skip section navigation (2)

How to insert data pass by parameter

From: usanee(at)mfec(dot)co(dot)th
To: pgsql-odbc(at)postgresql(dot)org
Subject: How to insert data pass by parameter
Date: 2007-08-08 08:08:54
Message-ID: 46854. (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
Hi support
             I have problem about insertion into postgres db and details
like below;
1. I use IBM DataStage as client connect to Postgrest db 8.2.4 via
psqlOdbc  8.0.4
2. I can read data from table but I cannot insert data in to target table
on Postgrest DB and I 've got error message like this

         "SQL statement:INSERT INTO a(emp_id) VALUES (?)
[DataStage][SQL Client][ODBC][unixODBC]Error while executing the query
ERROR:  syntax error at end of input at character 47 "

                 Table name : a
                  Col Name     :emp_id  char(10)
                 Sql Statement : insert into a (emp_id) values (?);
       I use (?) for passing data by parameter.

Please give me a suggestion for using insert data by pass parameter



pgsql-odbc by date

Next:From: lothar.behrens@lollisoft.deDate: 2007-08-08 14:24:52
Subject: SetPos with data_at_exec not yet supported ?
Previous:From: lothar.behrens@lollisoft.deDate: 2007-08-07 22:40:37
Subject: Long data and SQLPutData ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group