How can I fin '_'-mark in text-string [message #188155] |
Thu, 17 August 2006 05:46 |
te5elahj
Messages: 3 Registered: August 2006
|
Junior Member |
|
|
Hi,
I have a table TEST_TABLE and column TEST_COLUMN. I need to find those rows where in '_'-mark.
WHERE TEST_COLUMN LIKE '%'||'_'||'%'
Didn't because it's same as '%'. How can I find '_'-mark?
BR Karri
|
|
|
|
|
|
Re: How can I fin '_'-mark in text-string [message #188370 is a reply to message #188155] |
Fri, 18 August 2006 04:21 |
jaydeep mitra
Messages: 20 Registered: August 2006 Location: India
|
Junior Member |
|
|
Hi,
Assume my table name is LGN having column name po_id.The po_id column has values po_1,po_2,po3.So the following query
select po_id from lgn where length(po_id) - length(replace(po_id,'_',null))!=0
will return po_1,po_2 only .
Hope this might solve your problem.
Regards
Jaydeep Mitra
PH: 91-9440499806
|
|
|
|