replacing mysql enum

Поиск
Список
Период
Сортировка
От Kenneth Gonsalves
Тема replacing mysql enum
Дата
Msg-id 04121110305520.21547@thenilgiris.com
обсуждение исходный текст
Ответы Re: replacing mysql enum
Re: replacing mysql enum
Список pgsql-sql
hi,

from mysql:

field enum('a','b','c') default null,

i translated this as:

field varchar(2) check (field in (null,'a','b','c')),

is it necessary to put the 'null' in the check condition? if not will pg 
permit you to enter a null value in the field?

regards
kg


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

Предыдущее
От: "Kevin B."
Дата:
Сообщение: filtering
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Cast NULL into Timestamp?