pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 李彦 Ian Li <liyan82@gmail.com>
To: pgsql-php@postgresql.org
Subject: Data Type for "flags"
Date: Wed, 16 May 2007 17:10:48 +0800
Message-ID: <464ACA98.40000@gmail.com> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <464ACA98.40000@gmail.com>
Permalink:  ../464ACA98.40000@gmail.com/
Also on:    postgresql.org/message-id/464ACA98.40000@gmail.com

 · 

reply

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-php@postgresql.org
  Cc: liyan82@gmail.com
  Subject: Re: Data Type for "flags"
  In-Reply-To: <464ACA98.40000@gmail.com>
  References: <464ACA98.40000@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