From: Karina Guardado <kguardado@gmail.com>
To: rod@iol.ie
Cc: pgsql-general@postgresql.org
Subject: Re: data type to store a lot of text and tables of data
Date: Wed, 24 Mar 2010 16:01:48 -0600
Message-ID: <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com> (raw)
In-Reply-To: <4BAA8A3A.2060403@iol.ie>
References: <4a92b0c31003241448r3efc833ep7036d2ba90f8d39f@mail.gmail.com>
<4BAA8A3A.2060403@iol.ie>
for example something like the following :
*Table 9-25. Date/Time Operators*
OperatorExampleResult + date '2001-09-28' + integer '7'date '2001-10-05' + date
'2001-09-28' + interval '1 hour'timestamp '2001-09-28 01:00:00' + date
'2001-09-28' + time '03:00'timestamp '2001-09-28 03:00:00' + interval '1
day' + interval '1 hour'interval '1 day 01:00:00' + timestamp '2001-09-28
01:00' + interval '23 hours'timestamp '2001-09-29 00:00:00' + time '01:00' +
interval '3 hours'time '04:00:00' - - interval '23 hours'interval
'-23:00:00' - date '2001-10-01' - date '2001-09-28'integer '3' - date
'2001-10-01' - integer '7'date '2001-09-24' - date '2001-09-28' - interval
'1 hour'timestamp '2001-09-27 23:00:00' - time '05:00' - time '03:00'interval
'02:00:00' - time '05:00' - interval '2 hours'time '03:00:00' - timestamp
'2001-09-28 23:00' - interval '23 hours'timestamp '2001-09-28
00:00:00' - interval
'1 day' - interval '1 hour'interval '1 day -01:00:00' - timestamp
'2001-09-29 03:00' - timestamp '2001-09-27 12:00'interval '1 day
15:00:00' * 900
* interval '1 second'interval '00:15:00' * 21 * interval '1 day'interval '21
days' * double precision '3.5' * interval '1 hour'interval '03:30:00'
/ interval
'1 hour' / double precision '1.5'interval '00:40:00'
is it possible? or is better to use an atached file and store it ? and what
should be the data type to store a file that can be xls, doc, pdf for
example.
On Wed, Mar 24, 2010 at 3:55 PM, Raymond O'Donnell <rod@iol.ie> wrote:
> On 24/03/2010 21:48, Karina Guardado wrote:
> > Hi,
> >
> > Is there a special data type to use to store a lot of text and tables of
> > data in a column or attribute?
>
> For large amounts of text, just use the TEXT data type:
>
> http://www.postgresql.org/docs/8.4/static/datatype-character.html
>
> Not sure what you mean by "tables of data".
>
> 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: kguardado@gmail.com, rod@iol.ie
Subject: Re: data type to store a lot of text and tables of data
In-Reply-To: <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com>
References: <4a92b0c31003241448r3efc833ep7036d2ba90f8d39f@mail.gmail.com> <4BAA8A3A.2060403@iol.ie> <4a92b0c31003241501s7582c8d0h6b57cde596b9b613@mail.gmail.com>
* 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