![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can anyone tell me which Ingres release first introduced alternates in the LIKE predicate? -- Roy |
#3
| |||
| |||
|
|
On 22 Jan., 09:03, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote: Can anyone tell me which Ingres release first introduced alternates in the LIKE predicate? -- Roy Hi all, I must admit that I don't know what alternates in the LIKE predicate look like. So as I'm curious: can anybody give an SQL example for this? |
|
description | +--------------------+ Fastener | Wheel Assy | Header | Trailer | +--------------------+ |
#4
| |||
| |||
|
|
I must admit that I don't know what alternates in the LIKE predicate look like. So as I'm curious: can anybody give an SQL example for this? |
#5
| |||
| |||
|
|
I must admit that I don't know what alternates in the LIKE predicate look like. So as I'm curious: can anybody give an SQL example for this? Ditto. I just trawled the 9.2.0 SQL reference guide and the description of the like predicate doesn't include anything on alternates. Martin Bowes _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#6
| |||
| |||
|
|
On 22 Jan., 09:03, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote: Can anyone tell me which Ingres release first introduced alternates in the LIKE predicate? -- Roy Hi all, I must admit that I don't know what alternates in the LIKE predicate look like. So as I'm curious: can anybody give an SQL example for this? |
|
description | +--------------------+ Fastener | Wheel Assy | Header | Trailer | +--------------------+ |
#7
| |||
| |||
|
|
So What am I doing wrong here: II 9.2.0 (a64.lnx/143)NPTL + p13643 select name from iidatabase where trim(name) like 'a%\|%e' escape '\'; ...SQL OK but erroneously returns no rows. select name from iidatabase where trim(name) like 'g%\|%e' escape '\'; ...SQL Stynatx error. E_AD1018 Illegal pattern match specified: Illegal ESCAPE sequence. The ESCAPE char must be followed by one of: `%' (percent) `_' (underscore) `[' (left square bracket) `]' (right square bracket) another ESCAPE char. (Mon Jan 25 10:46:01 2010) Marty -----Original Message----- From: info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Roy Hann Sent: 25 January 2010 10:31 To: info-ingres (AT) kettleriverconsulting (DOT) com Subject: Re: [Info-Ingres] Alternates in LIKE Gerhard Hofmann wrote: On 22 Jan., 09:03, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote: Can anyone tell me which Ingres release first introduced alternates in the LIKE predicate? -- Roy Hi all, I must admit that I don't know what alternates in the LIKE predicate look like. So as I'm curious: can anybody give an SQL example for this? The | character, preceded by your favorite escape character is used to delimit multiple possible patters to match. Here is an example that matches strings begining with "Wh" or ending with "er": * select description from parts * where description like 'Wh%\|%er' escape '\' \g Executing . . . +--------------------+ |description | +--------------------+ |Fastener | |Wheel Assy | |Header | |Trailer | +--------------------+ (4 rows) continue * -- Roy UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010 Go to http://www.iua.org.uk/join to get on the mailing list. _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#8
| |||
| |||
|
|
So What am I doing wrong here: II 9.2.0 (a64.lnx/143)NPTL + p13643 select name from iidatabase where trim(name) like 'a%\|%e' escape '\'; ...SQL OK but erroneously returns no rows. select name from iidatabase where trim(name) like 'g%\|%e' escape '\'; ...SQL Stynatx error. E_AD1018 Illegal pattern match specified: Illegal ESCAPE sequence. The ESCAPE char must be followed by one of: `%' (percent) `_' (underscore) `[' (left square bracket) `]' (right square bracket) another ESCAPE char. (Mon Jan 25 10:46:01 2010) |
|
name | +--------------------------------+ imadb | isidb | iidbdb | +--------------------------------+ |
|
name | +--------------------------------+ |
#9
| |||
| |||
|
|
-----Original Message----- From: info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info- ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Martin Bowes Sent: 25 January 2010 10:35 To: Ingres and related product discussion forum Cc: Gerhard Hofmann Subject: Re: [Info-Ingres] Alternates in LIKE I must admit that I don't know what alternates in the LIKE predicate look like. So as I'm curious: can anybody give an SQL example for this? Ditto. I just trawled the 9.2.0 SQL reference guide and the description of the like predicate doesn't include anything on alternates. Martin Bowes |
#10
| |||
| |||
|
|
On 22 Jan., 09:03, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote: Can anyone tell me which Ingres release first introduced alternates in the LIKE predicate? -- Roy Hi all, I must admit that I don't know what alternates in the LIKE predicate look like. So as I'm curious: can anybody give an SQL example for this? |
|
description | +--------------------+ Fastener | Wheel Assy | Header | Trailer | +--------------------+ |
![]() |
| Thread Tools | |
| Display Modes | |
| |