From: Raymond O'Donnell <rod@iol.ie>
To: Karina Guardado <kguardado@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: data type to store a lot of text and tables of data
Date: Wed, 24 Mar 2010 22:44:44 +0000
Message-ID: <4BAA95DC.3030707@iol.ie> (raw)
In-Reply-To: <4a92b0c31003241539i69266a2q6c0bbfd620861ac2@mail.gmail.com>
References: <4a92b0c31003241448r3efc833ep7036d2ba90f8d39f@mail.gmail.com>
<4BAA8A3A.2060403@iol.ie>
<4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com>
<4BAA8D72.5030808@iol.ie>
<4a92b0c31003241539i69266a2q6c0bbfd620861ac2@mail.gmail.com>
On 24/03/2010 22:39, Karina Guardado wrote:
> You know I need to design a table where some attributes have a data type
> that allow me to store text mixed with tables and other information. I
> use PHP code to get the information and store it in to the database so I
> wonder if this is posible to do. I found in the link you provided me
> that If character varying is used without length specifier, the type
> accepts strings of any size. So this is useful for me when only text has
> to be stored but when the user wants to store information mixed with
> tables like the following :
I suppose it depends on what the format of the data is.... the example
you posted is HTML, which is pure text, so could be stored in a VARCHAR
or TEXT column.
Ray.
--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rod@iol.ie, kguardado@gmail.com
Subject: Re: data type to store a lot of text and tables of data
In-Reply-To: <4BAA95DC.3030707@iol.ie>
References: <4a92b0c31003241448r3efc833ep7036d2ba90f8d39f@mail.gmail.com> <4BAA8A3A.2060403@iol.ie> <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com> <4BAA8D72.5030808@iol.ie> <4a92b0c31003241539i69266a2q6c0bbfd620861ac2@mail.gmail.com> <4BAA95DC.3030707@iol.ie>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox