Data Type for "flags"

From: 李彦 Ian Li <liyan82(at)gmail(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: Data Type for "flags"
Date: 2007-05-16 09:10:48
Message-ID: 464ACA98.40000@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Hello all:
I am new to PHP and PostgereSQL with some former experiences of ASP
and MSSQL. My question is when I want to represent different types
of object, or different status of object in my application, e.g.
class of users, I used to use tinyint in MSSQL. But I found there is
no such thing in PGSQL, so what should I use instead? integer, bytea
,or bit(n)? I think integer will be the most convenient to use,
isn't it?

Regards,
Ian

Responses

Browse pgsql-php by date

  From Date Subject
Next Message 李彦 Ian Li 2007-05-16 09:29:22 Re: Data Type for "flags"
Previous Message John DeSoi 2007-05-09 12:26:50 Re: Question about array datatype, and alternatives