PreparedStatement.setString with null

Поиск
Список
Период
Сортировка
От Tim Penhey
Тема PreparedStatement.setString with null
Дата
Msg-id 415BD807.6040103@penhey.net
обсуждение исходный текст
Ответы Re: PreparedStatement.setString with null
Re: PreparedStatement.setString with null
Список pgsql-jdbc
What is this supposed to do?

    PreparedStatement stat = connection.prepareStatement("update table1
set col1 = ?");
    stat.setString(1, null);

Will this make a null value in the database or an empty string?  Do we
have to use the setNull(1, Types.VARCHAR) in order to get a null value
entered?

Thanks,
Tim


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

Предыдущее
От: atommax@tiscali.dk
Дата:
Сообщение: Download source code for pg74.215.jdbc3 driver
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Download source code for pg74.215.jdbc3 driver