From: | "Igor Neyman" <ineyman(at)perceptron(dot)com> |
---|---|
To: | <emilu(at)encs(dot)concordia(dot)ca>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: prepared query plan did not update |
Date: | 2008-09-17 19:28:55 |
Message-ID: | F4C27E77F7A33E4CA98C19A9DC6722A2037800AB@EXCHANGE.corp.perceptron.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org
[mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of Emi Lu
Sent: Wednesday, September 17, 2008 2:55 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: [SQL] prepared query plan did not update
Good morning,
I tried to use prepared query plan to update columns, but it did not
update at all.
PREPARE pname(varchar) AS
UPDATE t1
SET col1 = false
WHERE col1 AND
col2 = '$1' ;
EXECUTE pname( 'value' )
Could someone tell me where I did wrong please?
Thanks alot!
--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org) To make
changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
WHERE col1 AND
col2 = '$1' ;
Are you looking for both: col1 and col2 - to be equal to '$1'?
Then it should be:
WHERE col1 = '$1' AND
col2 = '$1';
From | Date | Subject | |
---|---|---|---|
Next Message | Emi Lu | 2008-09-17 19:41:40 | Re: prepared query plan did not update |
Previous Message | Emi Lu | 2008-09-17 18:54:34 | prepared query plan did not update |