Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

filter Numeric data in a Character Column

Kumar62Nov 21 2008 — edited Nov 21 2008
Hello Al,

I have a requirement; need to filter Numeric data in a Character Column in a Table.


Ex :

create table ksk1 (N varchar2(500) );

Table Contains following test data :


begin
insert into ksk1 values ('satish') ;
insert into ksk1 values ('kapaka');
insert into ksk1 values ('sita123');
insert into ksk1 values ('123sata');
insert into ksk1 values ('pavan334sdfsd');
insert into ksk1 values ('123');
insert into ksk1 values ('32');
insert into ksk1 values ('4576');
insert into ksk1 values ('qwerw23452346wefyg56345');
insert into ksk1 values ('2323');
insert into ksk1 values ('878');
insert into ksk1 values ('444');
insert into ksk1 values ('sadf452345sdg');
insert into ksk1 values ('sdghd456534');
end;

select n from ksk1;

I need to get the data like:


123
32
4576
2323
878
444

Only …..


Can we write the query for the same with using declaration/ Procedural blocks…… ?



Thanks,
Kumar
This post has been answered by Satyaki_De on Nov 21 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2008
Added on Nov 21 2008
7 comments
373 views