I’m seeking the most efficient way to make strings like that “abcdefghijklmnop”(longer then 15) to appear like that “abcdefghijklm..” – all of that inside MySQL query. I dont want to deal with it inside my app code.
I’m seeking the most efficient way to make strings like that abcdefghijklmnop(longer then 15)
Share
select if(char_length(thefield) > 15, concat(substr(thefield, 1, 13), '..'), thefield)