Kenneth Gonsalves wrote:
> 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, or are you just porting an
application from Mysql?
In response to
pgsql-sql by date
|Next:||From: Kenneth Gonsalves||Date: 2004-12-13 13:43:25|
|Subject: Re: mysql set datatype|
|Previous:||From: Richard Huxton||Date: 2004-12-13 13:18:58|
|Subject: Re: Hide schemas and tables|