Getting max. value size (libpq++)

Поиск
Список
Период
Сортировка
От Philippe Chaintreuil
Тема Getting max. value size (libpq++)
Дата
Msg-id Pine.LNX.3.96.990701012204.24070A-100000@pravda.thefront.com
обсуждение исходный текст
Ответ на Re: [INTERFACES] Reply-To: missing  ("Ken J. Wright" <ken@ori-ind.com>)
Ответы Re: [INTERFACES] Getting max. value size (libpq++)  (Peter T Mount <peter@retep.org.uk>)
Список pgsql-interfaces
    Okay, maybe I'm just not finding it in the documentation, but is
there a way to find out the max size of a field?  Specifically VARCHAR
fields.  For instance if I have a table created with the SQL code:

CREATE TABLE temp_table
( name VARCHAR(30), id VARCHAR(10), address VARCHAR(60));
Now the program I'm writing will add whatever the user wants to
this table, of what ever size.  I'm trying to avoid locking the size of
the HTML input fields.  So is there anyway to get those numbers back from
Postgres?  Right now they're hard-coded in, which really sucks.  Thanks.
               --Philippe Chaintreuil                    peep@thefront.com



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

Предыдущее
От: "Ken J. Wright"
Дата:
Сообщение: Re: [INTERFACES] Reply-To: missing
Следующее
От: JT Kirkpatrick
Дата:
Сообщение: fetching way too much or too often???