mysql query based on length of string in a column -
mysql query based on length of string in a column -
i trying query table in mysql based on length of string in specific column. know mysql has function called length(), returns length of string. want able pull info based on result of length() function.
example:
select * table length(word) = 6
of course of study not work. read through http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function%5flength not find help me.
yes create in php accomplish this, @ query level.
any help?
try:
select * table length(rtrim(word)) = 6
mysql
Comments
Post a Comment