Re: SQL string functions
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.
Subject
Written By
Posted
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.