Re: data type to store a lot of text and tables of data

Поиск
Список
Период
Сортировка
От Karina Guardado
Тема Re: data type to store a lot of text and tables of data
Дата
Msg-id 4a92b0c31003241539i69266a2q6c0bbfd620861ac2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: data type to store a lot of text and tables of data  (Raymond O'Donnell <rod@iol.ie>)
Ответы Re: data type to store a lot of text and tables of data  (Raymond O'Donnell <rod@iol.ie>)
help  (赤松 建司 <akamatsu@worldmate.or.jp>)
Список pgsql-general
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 :


Reciba un respetuoso saludo y deseo de éxitos en sus actividades. El motivo de la presente es para solicitarle se realice una corrección en el plan de mantenimiento preventivo y correctivo de fotocopiadoras, duplicadores e impresoras debido a que en el Centro de Cómputo aparecen, según el reporte, 4 impresoras asignadas y en realidad solamente tenemos dos que son las que detallo a continuación:

 

Impresora

Marca

Modelo

No. De Inventario

Observaciones

       X

HP

LaserJet 1300

12040-3701-080-0005

Si aparece en el listado.

       X

HP

LaserJet 3055

12040-0603-080-0002

No aparece en el listado

 


I hope this help,


thanks a lot,


karina



#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}
On Wed, Mar 24, 2010 at 4:08 PM, Raymond O'Donnell <rod@iol.ie> wrote:
On 24/03/2010 22:01, Karina Guardado wrote:

> what should be the data type to store a file that can be xls, doc, pdf
> for example.

Sorry, I missed this bit - for binary files you can use the bytea type.
Look under "Binary data types" in the docs.

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

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

Предыдущее
От: "Carlo Stonebanks"
Дата:
Сообщение: Re: How to dump JUST procedures/funnctions?
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: data type to store a lot of text and tables of data