select first character of second word (surname)


/ Published in: MySQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SELECT SUBSTRING( reverse( TRIM( node.title ) ) , locate( ' ', reverse( TRIM( node.title ) ) ) -1, 1 ) AS title_truncated
  2. FROM node

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.