pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Migowski <dmigowski@ikoffice.de>
To: Arun ViswanathanChandrika <Arun.ViswanathanChandrika@ust-global.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: issue with select IN (?) query
Date: Tue, 22 Jul 2008 08:54:49 +0200
Message-ID: <48858439.3020101@ikoffice.de> (raw)
In-Reply-To: <4ADAE57BEACCF2489D5871A8B883F9DD16EE27@TRVMSG.ustr.com>
References: <4ADAE57BEACCF2489D5871A8B883F9DD16EE27@TRVMSG.ustr.com>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Arun,<br>
<br>
Arun ViswanathanChandrika schrieb:
<blockquote
 cite="mid:4ADAE57BEACCF2489D5871A8B883F9DD16EE27@TRVMSG.ustr.com"
 type="cite">
  <p><font size="2"><br>
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pm = con.prepareStatement("SELECT EMP_NAME FROM EMP where
EMP_ID IN (?) ");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pm.setString(1, "2,5,7");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //created many employees and
id with 2, 5 and 7<br>
  </font></p>
</blockquote>
Resolves to: <font size="2">SELECT EMP_NAME FROM EMP where EMP_ID IN
('2,5,7');<br>
<br>
Watch the "'"'s :)<br>
<br>
With best regards,<br>
Daniel Migowski</font>
</body>
</html>



view thread (2+ messages)

Message-ID: <48858439.3020101@ikoffice.de>
Permalink:  ../48858439.3020101@ikoffice.de/
Also on:    postgresql.org/message-id/48858439.3020101@ikoffice.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: dmigowski@ikoffice.de, Arun.ViswanathanChandrika@ust-global.com
  Subject: Re: issue with select IN (?) query
  In-Reply-To: <48858439.3020101@ikoffice.de>
  References: <4ADAE57BEACCF2489D5871A8B883F9DD16EE27@TRVMSG.ustr.com> <48858439.3020101@ikoffice.de>

* 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