Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: How to select column with one or more spaces

Re: How to select column with one or more spaces

From: Knut Talman <knut.talman_at_mytoys.de>
Date: Fri, 06 Jul 2001 14:38:14 +0200
Message-ID: <3B45B136.6CE7C1F@mytoys.de>

> select col_name from tab_name
> where col_name = ' ' or col_name = ' ';

You only select columns with one or two spaces.

But

SELECT col_name FROM table_name

   WHERE INSTR(col_name,' ') >= 1;

will select every column (or rather rows containing this column) with one or more spaces.

Regards,

Knut Received on Fri Jul 06 2001 - 07:38:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US