Re: JDBC Driver Help...

Поиск
Список
Период
Сортировка
От Bob Kline
Тема Re: JDBC Driver Help...
Дата
Msg-id Pine.LNX.4.10.10009060835200.2563-100000@rksystems.com
обсуждение исходный текст
Ответ на JDBC Driver Help...  (Eric Buschelmann <ehb@one.net>)
Список pgsql-interfaces
On Mon, 4 Sep 2000, Eric Buschelmann wrote:

> I am attempting to use the following code.... However, I seem to always
> get to the SQL EXCEPTION (on the query)... [snip]
>      ResultSet rs = st.executeQuery("insert into test values(2);");
>      rs.close();
> 
> 
>      st.close();
>      con.close();
>      }
> 
>      catch (SQLException excpt0)
>          {
>       textArea2.setText("SQL EXCEPTION ON QUERY!!!");
>          }

The two most egregious problems are the fact that you're not letting the
exception objects tell you what they know, and the semicolon isn't part
of the SQL syntax -- lose it.

-- 
Bob Kline
mailto:bkline@rksystems.com
http://www.rksystems.com



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

Предыдущее
От: Bob Kline
Дата:
Сообщение: Re: Pasing Cursors
Следующее
От: alec@cr464730-a.poco1.bc.home.com (Alec Smecher)
Дата:
Сообщение: JDBC Insert row?