psql with option -c fails.. - Mailing list pgsql-general

From akp geek
Subject psql with option -c fails..
Date
Msg-id CACnhOf+pFufp09Ec+EKxcjq-5vMkoKvQyMX4UdiBbdmi+gm63A@mail.gmail.com
Whole thread Raw
Responses Re: psql with option -c fails..  (Lonni J Friedman <netllama@gmail.com>)
Re: psql with option -c fails..  (patrick keshishian <pkeshish@gmail.com>)
List pgsql-general
Hi all -

               I am trying to run the psql command the following way and it's failing . Can you please help?

                psql  -d mydb  -c 'update tb_user set accountstatus='A' where userid=123'

ERROR:  column "a" does not exist
LINE 1: ...date tb_user accountstatus=A


Thanks for the help

Regards

pgsql-general by date:

Previous
From: Alexander Farber
Date:
Subject: Storing PHP 5.3 sessions into PostgreSQL 8.4
Next
From: Lonni J Friedman
Date:
Subject: Re: psql with option -c fails..