• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Oracle SQL string lentgth

I need to find only strings in my table field that are 11 characters long.  What is the Oracle SQL to do this?
1 Solution
johnsoneSenior Oracle DBACommented:
select * from tab where length(col1) = 11

For reference, this is the doc link to the LENGTH function -> http://docs.oracle.com/cd/E11882_01/server.112/e41084/functions088.htm#SQLRF00658
donnie91910Author Commented:
Works great thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now