Many thanks Bill
Much appreciated.
"Bill Karwin" <bill (AT) karwin (DOT) com> wrote
Laphan wrote:
Quote:
What I want to do is select 50 chars of a field and then put '...' at the
end of this selection, eg:
SELECT LEFT(DESC,50) + '...' FROM MyTable |
The + operator is used for string concatenation in Microsoft SQL Server
and some other products.
In MySQL, the way to do what you want is:
SELECT CONCAT(LEFT(DESC,50), '...') FROM MyTable
See http://dev.mysql.com/doc/mysql/en/String_functions.html for more
information.
Regards,
Bill K.