Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Oracle only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Oracle
How to display the names only with character '_' in oracle?
How to display the names only with character '_' in oracle?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
pavani reddy
#1
How to display the names only with character '_' in oracle?
Oct 10 '10, 12:05 PM
Is this right?
select * from emp where like"%_%;
amitpatel66
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
2358
#2
Oct 11 '10, 09:55 AM
Try this:
[code=oracle]
SQL> ed
Wrote file afiedt.buf
1 with t as (select 'my_name' col1 from dual
2 union select 'first_last' from dual
3 union select 'firstlast' from dual)
4* select col1 from t where INSTR(col1,'_', 1,1) > 0
SQL> /
COL1
----------
first_last
my_name
SQL>
[/code]
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment