-
Finding Data with Trailing Whitespaces using Oracle SQL
I have a table SEQ_TIER_CODES.This table has a column MACHINE_TYPE.This column has records with values
'EB417US'
and
'EB417US ' (ie value with trailing whitespaces)
I would like to pick those records with the value 'EB417US ' (ie value with trailing whitespaces) using an Oracle SQL statement.Kindly help
-
Code:
... where machine_code like '% '
-
MACHINE_TYPE, is it VARCHAR2() or CHAR()
SEQ_TIER_CODES, are values expected to have seven significant characters?
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
-
The datatype is VARCHAR2()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|