Re: How do i store arbitrary questions and answers in SQL?

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How do i store arbitrary questions and answers in SQL?
Date: 2006-08-23 13:20:39
Message-ID: 20060823132039.GG5940@merkur.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 23, 2006 at 04:13:24PM +0300, Enver ALTIN wrote:

> > CREATE TABLE Answer(ID INT, questionID INT, answer_text VARCHAR(255),
> > datatype INT)
>
> You can actually store answer_text as a BLOB in the database that is
> packed in any format your application can handle. You can serialize a
> class that represents the answer you need and store it, for example.

There was an article on that on Elein's General Bits not too
long ago.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2006-08-23 13:23:57 Re: [8.1.4] Create index on timestamp fails
Previous Message A. Kretschmer 2006-08-23 13:13:53 Re: Installation Help needed