Is this usage correct ?

Поиск
Список
Период
Сортировка
От Guillaume Rousse
Тема Is this usage correct ?
Дата
Msg-id 00041913520100.08718@agathe
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: lo_import problems
Следующее
От: Peter Mount
Дата:
Сообщение: RE: Is this usage correct ?