pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Stosberg <mark@summersault.com>
To: pgsql-sql@postgresql.org
Subject: Porting MySQL's DESCRIBE and ENUM features
Date: Sat, 13 Nov 1999 11:33:15 -0500
Message-ID: <382D92C3.C621932A@summersault.com> (raw)


Hello,

  I'm helping to port some somewhere from MySQL to Postgres, and am
looking for an equivalent to MySQL's DESCRIBE function. Do you know of
one for Postgres?
  Specifically, one way DESCRIBE is used in this software is to get the
values from ENUM, where a MySQL column declaration might look like this:

ReceiveMail        ENUM ('Yes', 'No') NOT NULL DEFAULT 'Yes',

  I can get the same functionality in Postgres like this, but what can
use to get the values back of what's being checked? Thanks!

ReceiveMail        CHAR(3) check(ReceiveMail in ('Yes', 'No')) NOT NULL
DEFAULT 'Yes',

     -mark
  <<-------------------------------------------------------------->>
personal website                <    Summersault Website Design
   http://mark.stosberg.com/     >       http://www.summersault.com/



view thread (3+ messages)  latest in thread

Message-ID: <382D92C3.C621932A@summersault.com>
Permalink:  ../382D92C3.C621932A@summersault.com/
Also on:    postgresql.org/message-id/382D92C3.C621932A@summersault.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-sql@postgresql.org
  Cc: mark@summersault.com
  Subject: Re: Porting MySQL's DESCRIBE and ENUM features
  In-Reply-To: <382D92C3.C621932A@summersault.com>
  References: <382D92C3.C621932A@summersault.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