Is this usage correct ? - Mailing list pgsql-interfaces

From Guillaume Rousse
Subject Is this usage correct ?
Date
Msg-id 00041913520100.08718@agathe
Whole thread Raw
List 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 R�union

Sleep doesn't exists. Just lack of cafeine.


pgsql-interfaces by date:

Previous
From: Karel Zak
Date:
Subject: Re: lo_import problems
Next
From: Peter Mount
Date:
Subject: RE: Is this usage correct ?