Re: equivalent of mysql's SET type?

Поиск
Список
Период
Сортировка
Искать
От
John R Pierce
Тема
Re: equivalent of mysql's SET type?
Дата
Msg-id
4D77130B.9030108@hogranch.com
Ответ на
Список
Дерево обсуждения
equivalent of mysql's SET type? Reece Hart <reece@harts.net>
Re: equivalent of mysql's SET type? Darren Duncan <darren@darrenduncan.net>
Re: equivalent of mysql's SET type? Reece Hart <reece@harts.net>
Re: equivalent of mysql's SET type? Darren Duncan <darren@darrenduncan.net>
Re: equivalent of mysql's SET type? John R Pierce <pierce@hogranch.com>
Re: equivalent of mysql's SET type? Reece Hart <reece@harts.net>
Re: equivalent of mysql's SET type? Merlin Moncure <mmoncure@gmail.com>
Re: equivalent of mysql's SET type? Reece Hart <reece@harts.net>
Re: equivalent of mysql's SET type? Merlin Moncure <mmoncure@gmail.com>
Re: equivalent of mysql's SET type? Merlin Moncure <mmoncure@gmail.com>
Re: equivalent of mysql's SET type? Dmitriy Igrishin <dmitigr@gmail.com>
Re: equivalent of mysql's SET type? Merlin Moncure <mmoncure@gmail.com>
Re: equivalent of mysql's SET type? Dmitriy Igrishin <dmitigr@gmail.com>
Re: equivalent of mysql's SET type? Merlin Moncure <mmoncure@gmail.com>
Re: equivalent of mysql's SET type? Steve Atkins <steve@blighty.com>
Re: equivalent of mysql's SET type? Reece Hart <reece@harts.net>
On 03/08/11 5:06 PM, Reece Hart wrote:
> I'm considering porting a MySQL database to PostgreSQL. That database 
> uses MySQL's SET type. Does anyone have advice about representing this 
> type in PostgreSQL?
>
> MySQL DDL excerpt:
> CREATE TABLE `transcript_variation` (
>   `transcript_variation_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
>   `transcript_stable_id` varchar(128) NOT NULL,
>    ...
>   `consequence_type` 
> set('ESSENTIAL_SPLICE_SITE','STOP_GAINED','STOP_LOST','COMPLEX_INDEL','SPLICE_SITE')
> ) ENGINE=MyISAM AUTO_INCREMENT=174923212 DEFAULT CHARSET=latin1;
>
>

why not just have a set of booleans in the table for these individual 
on/off attributes?   wouldn't that be simplest?




В списке pgsql-general по дате отправления
От: abcdef
Дата:
Сообщение: procedure in db
От: Pavel Stehule
Дата:
Сообщение: Re: procedure in db
FAQ