0

I have to find a way to figure out the values with embedded spaces in a column. Example :

Table : Test

COLUMN

ABC       -- OK

A B C     -- OK (only one space between word)

A  B  C   -- (fetch this)(2 spaces)

A   B   C -- (fetch this)(3 spaces)

As the last 2 values in the column having embedded spaces, somehow I have to fetch these values..

Any suggestion...

1 Answer 1

1

Is this what you want?

select *
from test t
where column like '%  %';

Note there are two spaces between the wildcards.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.