In a view, i have a column comments which may contain large string. I just want to select first 60 characters and append the '...' at the end of the selected string.
For selecting first 60 characters i have used following query:
select LEFT(comments, 60) as comments from myview
Now i want its processing as below:
- Check it contains more then 60 characters or not.
- If contains then select only first 6o characters and append three dots at the end.
- If it doesn't contain more then 60 characters then select whole string without appending three dots at the end.
Thanks