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

From: Enver ALTIN <ealtin(at)parkyeri(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How do i store arbitrary questions and answers in SQL?
Date: 2006-08-23 13:13:24
Message-ID: 20060823131323.GB8476@golf
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On Wed, Aug 23, 2006 at 02:40:29AM -0700, lifeisgood 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.

-HTH
--
Enver

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2006-08-23 13:13:53 Re: Installation Help needed
Previous Message Dave Page 2006-08-23 13:10:42 Re: What's special about 1916-10-01 02:25:20? Odd jump in internal timestamptz representation