Re: mysql set datatype

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: mysql set datatype
Дата
Msg-id 41BD985C.4030102@archonet.com
обсуждение исходный текст
Ответ на mysql set datatype  (Kenneth Gonsalves <lawgon@thenilgiris.com>)
Ответы Re: mysql set datatype
Список pgsql-sql
Kenneth Gonsalves wrote:
> hi,
> how does one replicate the myql 'set' datatype in pg? i tried using 'check', 
> but apparently there is much more to this

You could use a bit-string if you are just tracking set membership, but 
that doesn't exactly duplicate the behaviour. It should be 
straightforward enough to write some support functions and just use a 
text type, but that'd use a lot more storage.

Of course, another table is the accepted way of doing this relationally.  Are there any particular features you need,
orare you just porting an 
 
application from Mysql?

--  Richard Huxton  Archonet Ltd


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Hide schemas and tables
Следующее
От: Kenneth Gonsalves
Дата:
Сообщение: Re: mysql set datatype