pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karthikeyan Sundaram <skarthi98@hotmail.com>
To: pgsql-admin@postgresql.org
To: pgsql-sql@postgresql.org
Subject: question on passing parameter in sql query
Date: Wed, 07 Feb 2007 16:49:45 -0800
Message-ID: <BAY131-F28E2CC1D1B622B218CD5C3B09D0@phx.gbl> (raw)

Hi,

   I don't want to compare with Oracle and postgres. But I have a situation. 
  I am using psql command line tool supplied by postgres.

   In Oracle I can say

    select * from emp where emp_id = &1

   Oracle will ask:
   Enter a value for 1:

   If I enter 10, then Oracle will get the empid=10

  What is the equal command in postgres ?

Regards
skarthi

_________________________________________________________________
Invite your Hotmail contacts to join your friends list with Windows Live 
Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.a...




view thread (2+ messages)  latest in thread

Message-ID: <BAY131-F28E2CC1D1B622B218CD5C3B09D0@phx.gbl>
Permalink:  ../BAY131-F28E2CC1D1B622B218CD5C3B09D0@phx.gbl/
Also on:    postgresql.org/message-id/BAY131-F28E2CC1D1B622B218CD5C3B09D0@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: skarthi98@hotmail.com, pgsql-admin@postgresql.org
  Subject: Re: question on passing parameter in sql query
  In-Reply-To: <BAY131-F28E2CC1D1B622B218CD5C3B09D0@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox