MySQL Forums
Forum List  »  Delphi

Re: SQL string functions
Posted by: Damon Theis
Date: May 02, 2018 09:56AM

SELECT length(lastname) as longname
FROM test.accounts where length(lastname) > 10;

works fine in workbench, so the mysql syntax is correct.
it returns the length of the string(s) that meet the criteria.
not sure the point of that, but it does compile and return results.
in my test table lastname is a varchar(45) field.

Options: ReplyQuote

Written By
April 25, 2018 04:23PM
Re: SQL string functions
May 02, 2018 09:56AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.