Beth Gatewood writes: > So-If I had a table where I had LONG_NAME and ABBR as attributes. > > I want something like > > SELECT whatever FROM my_table WHERE long_name LIKE '%[the value of ABBR > in that row]%'; SELECT whatever FROM my_table a, my_table b WHERE a.long_name like (b.abbr || '%'); -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/
- [SQL] trying to pattern match to a value contained in a ... Beth Gatewood
- RE: [SQL] trying to pattern match to a value contai... Francis Solomon
- Re: [SQL] trying to pattern match to a value co... Beth Gatewood
- Re: [SQL] trying to pattern match to a valu... Joel Burton
- Re: [SQL] trying to pattern match to a valu... Tom Lane
- Re: [SQL] trying to pattern match to a ... Bruce Momjian
- Re: [SQL] trying to pattern match to a valu... Ross J. Reedstrom
- Peter Eisentraut