Обсуждение: REPOST: inserting default values

Поиск
Список
Период
Сортировка

REPOST: inserting default values

От
"Felipe Schnack"
Дата:
  Someone wrote to pgsql general list telling that you could insert the
default value of a column using DEFAULT keyword on pgsql 7.3. Like
  INSERT INTO TEST (varcharfield1, varcharfield2) VALUES ('text', DEFAULT)
  In this case, the "varcharfield2" column would get its default value (as
defined in CREATE TABLE). I was wondering, how I would do it using
PreparedStatements? We should have something like an "setDefault(int)" method
or something? I guess we could do it on JdbcAbstractResultSet, as we do with
SetServerSidePrepare... Just thinking.


Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes@ritterdosreis.br
Fone/Fax.: (51)32303328