Re: Migrating a MySQL schema with an enum - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: Migrating a MySQL schema with an enum
Date
Msg-id 200203202353.g2KNrtM11253@candle.pha.pa.us
Whole thread Raw
In response to Migrating a MySQL schema with an enum  (Keith Gray <keith@heart.com.au>)
List pgsql-sql
Keith Gray wrote:
> SQL gurus,
> 
> Migrating a MySQL schema with an enum to PostgreSQL, 
> is there an equivalent type or do I have to declare 
> another table for "enum" values.

You can use another table, or use CHECK constraints to limit the
possible values.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: "Andrew G. Hammond"
Date:
Subject: Re: How do I set the system time on production server?
Next
From: Peter Eisentraut
Date:
Subject: Re: Migrating a MySQL schema with an enum