Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: finding blank columns
On Wed, 03 May 2006 02:50:37 -0700, gpanda28_at_gmail.com wrote:
> Hi all
>
> I want to find out tables having blank columns,
> is there any easy way to finding them.
>
> pl. help
>
>
> thanks
>
> GP
select rowid from table where regexp_like(col,'^\s*$');
This is how it works:
SQL> create table emp1 as select * from emp;
Table created.
SQL> update emp1 set job='BIG BOSS' where job='PRESIDENT';
1 row updated.
SQL> commit;
Commit complete.
SQL> select ename from emp1 where regexp_like(job,'G\s*B');
ENAME
1 row updated.
SQL> commit;
Commit complete.
SQL> select ename from emp1 where regexp_like(job,'^\s*$');
ENAME
-- http://www.mgogala.comReceived on Wed May 03 2006 - 21:35:31 CDT