/ Published in: MySQL
Expand |
Embed | Plain Text
SELECT SUBSTRING( REVERSE( TRIM( node.title ) ) , LOCATE( ' ', REVERSE( TRIM( node.title ) ) ) -1, 1 ) AS title_truncated FROM node
You need to login to post a comment.
ReeceMarsland on 12/22/09
1 person have marked this snippet as a favorite
SELECT SUBSTRING( REVERSE( TRIM( node.title ) ) , LOCATE( ' ', REVERSE( TRIM( node.title ) ) ) -1, 1 ) AS title_truncated FROM node
You need to login to post a comment.