Search Postgresql Archives

Re: regarding contains operator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"surabhi.ahuja" <surabhi.ahuja@xxxxxxxxxxx> writes:
>  i have a field whose type is varchar(16)
> and the field is multivalued, in the sense it is of the form

> abc\def\tez
> (i.e. backslash separed values)

To be blunt, this is a really poorly-chosen data representation.
To point out just one problem, backslashes in the values will cause
you headaches.

Perhaps an array field would serve you better.  Then the specific
operation you are considering would be "foo = ANY(arrayfield)".

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux