Deletion

From: Ramesh T <rameshparnanditech(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Deletion
Date: 2014-08-27 09:52:18
Message-ID: CAK8Zd=t0k0jTgu9JqT_h3=eSrDasD_RnD1Vwf+7JE7bOoyqrqw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I have deletion script to delete particular cust from
database.I was
saved a file name with custde.sql.i need to run from command line like
putty tool..But have a problem

example :

delete from part where part.custid=$1;

when i ran custde.sql from putty tool

db=#\i custde.sql

it's return error
psql:custde.sql:9: ERROR: there is no parameter $1
LINE 1: ..._ID from part where part.CUST_ID = $1);

please let me know how to run script ..and how to give parameter..

Responses

Browse pgsql-general by date

  From Date Subject
Next Message swaroop 2014-08-27 11:32:41 Issue with COPY command
Previous Message Gabriele Lohss 2014-08-27 09:03:36 Re: pgbouncer setup in the architecture