Re: Migrating a MySQL schema with an enum

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Migrating a MySQL schema with an enum
Дата
Msg-id 200203202353.g2KNrtM11253@candle.pha.pa.us
обсуждение исходный текст
Ответ на Migrating a MySQL schema with an enum  (Keith Gray <keith@heart.com.au>)
Список 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 по дате отправления:

Предыдущее
От: "Andrew G. Hammond"
Дата:
Сообщение: Re: How do I set the system time on production server?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Migrating a MySQL schema with an enum