DELETING ROW

Поиск
Список
Период
Сортировка
От Gabriel López Millán
Тема DELETING ROW
Дата
Msg-id 396C52DF.BBE06E9C@dif.um.es
обсуждение исходный текст
Ответы Re: DELETING ROW  (Bob Kline <bkline@rksystems.com>)
Список pgsql-interfaces
Hi all.
   I'm traying to delete a row of a table. Te code is:
String query = "DELETE FROM " + ID_REQUEST_TABLE + " WHERE id = '" +
numReq+ "';";int result = s.executeUpdate(query);System.out.println("result: " + result);if(result != 0) {    .....
connection.commit();}
 

   If file do not exists "result" should be "0" (JDBC API), if exists,
it should be the number of the row that delete. But I always get the
value "1", always, even if the row to delete is 5,6, ... 10.
   I'm using postgresql 7.02 with linux RedHat 6.0 and jdk1.2
   Cheers, Gabi.


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "XWorkers"
Дата:
Сообщение: ODBC -- how much stable through internet
Следующее
От: Bob Kline
Дата:
Сообщение: Re: DELETING ROW