Re: Reg : Exception ( Postgresql with Java -JDBC)

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Reg : Exception ( Postgresql with Java -JDBC)
Дата
Msg-id 4384532A.8090208@opencloud.com
обсуждение исходный текст
Ответ на Reg : Exception ( Postgresql with Java -JDBC)  (smitha <smitha_alice_c@yahoo.com>)
Список pgsql-jdbc
smitha wrote:

>   &nb sp; String  query1 = "CREATE user " + logName + " with password '"
> + passwd + "' createuser";
>             ResultSet rs= st.executeQuery(query1);

CREATE USER does not return a resultset, so you should use
executeUpdate() or execute(), not executeQuery(). See the JDBC javadoc.

-O

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Switching user within connection.
Следующее
От: Tjioe Ai Xin
Дата:
Сообщение: Re: Can PostgreSQL do data type automated casting in prepared