Skip to Content
author's profile photo Former Member
Former Member

Determining the lenght of data during a select operation

Hi,

Is it possible to determine the length of data during a select operation.

I want to check whether the length of IFSC code ie BANKL field's data is not equal to 11 characters.

Is there a way to check it in the select statement.

Regards

Stan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 20, 2011 at 04:33 AM

    You could try something like below

    SELECT count( * )

    fROM mara INTO count

    where ernam like '____'.

    This gives the number of records in mara with ernam of length 4 ie/('_' stand for 1 character. So for length 4 i used 4 '_'')

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.