Re: Migrating a MySQL schema with an enum

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: Migrating a MySQL schema with an enum
Дата
Msg-id 20020321160227.GC9471@rice.edu
обсуждение исходный текст
Ответ на Re: Migrating a MySQL schema with an enum  (Martín Marqués <martin@bugs.unl.edu.ar>)
Ответы Re: Migrating a MySQL schema with an enum  (Martín Marqués <martin@bugs.unl.edu.ar>)
Список pgsql-sql
On Thu, Mar 21, 2002 at 09:40:42AM -0500, Vincent Stoessel wrote:
> Mart?n Marqu?s wrote:
> >On Mi? 20 Mar 2002 20:41, you 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.
> >
> >
> >I had to migrate a DB from MySQL to PostgreSQL that had some enum as field 
> >data type (I can't believe that something like that exists)
> 
> <snip>
> 
> another shot at the mysql db.
> Please don't forget that PG also has non standard data types
> available.

Your pique at seeing what you took as an unfair shot at another db caused you
to be blinded to what Martin was pointing out. In this case, MySQL has a
gratutiously non-standard feature: the equivalent CHECK constraint is only
a few more characters, and easier to read (IMHO)

Ross


В списке pgsql-sql по дате отправления:

Предыдущее
От: Vincent Stoessel
Дата:
Сообщение: Re: Migrating a MySQL schema with an enum
Следующее
От: "GRIMOIS Eric"
Дата:
Сообщение: Sequence not updated after a copy ?