Mertens Bram
2002-11-06 12:29:58 UTC
Hi,
How can I find the longest string in a column?
I can probably write a PHP-script that checks the str_length
recursively, but I would like to be able to do this within MySQL...
I would like to have the value and the length of the string if this is
possible. Is this possible or should I try to write the PHP-script?
I couldn't find anything relevant in the documentation or the archives,
but I hope I just missed it...
TIA,
Bram
[sql, query]
--
# Mertens Bram "M8ram" <bram-***@linux.be> Linux User #249103 #
# Red Hat Linux 7.3 KDE 3.0.0-10 kernel 2.4.18-3 i686 128MB RAM #
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <mysql-***@lists.mysql.com>
To unsubscribe, e-mail <mysql-unsubscribe-gcdmg-mysql=***@lists.mysql.com>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
How can I find the longest string in a column?
I can probably write a PHP-script that checks the str_length
recursively, but I would like to be able to do this within MySQL...
I would like to have the value and the length of the string if this is
possible. Is this possible or should I try to write the PHP-script?
I couldn't find anything relevant in the documentation or the archives,
but I hope I just missed it...
TIA,
Bram
[sql, query]
--
# Mertens Bram "M8ram" <bram-***@linux.be> Linux User #249103 #
# Red Hat Linux 7.3 KDE 3.0.0-10 kernel 2.4.18-3 i686 128MB RAM #
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <mysql-***@lists.mysql.com>
To unsubscribe, e-mail <mysql-unsubscribe-gcdmg-mysql=***@lists.mysql.com>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php