Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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.

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group