Is this usage correct ?

From: Guillaume Rousse <Guillaume(dot)Rousse(at)univ-reunion(dot)fr>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Is this usage correct ?
Date: 2000-04-19 09:47:21
Message-ID: 00041913520100.08718@agathe
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Is it correct to use a preparedStatement with no variable element, as this:
PreparedStatement stmp=conn.prepareStatement("delete from table where
oid="+oid);
stmt.excuteUpdate();

Or is it mandatory to use :
PreparedStatement stmp=conn.prepareStatement("delete from table where
oid=?");
stmt.setInt(1,oid);
stmt.excuteUpdate();

--
Guillaume Rousse
Iremia - Universit de la Runion

Sleep doesn't exists. Just lack of cafeine.

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Mount 2000-04-19 10:26:43 RE: Is this usage correct ?
Previous Message Karel Zak 2000-04-19 08:49:42 Re: lo_import problems