May 5, 2006 #1 sinbadly Technical User Mar 16, 2006 126 GB How can I adapt this code, Experts, please, to say 'miss 4 characters and then begin the LEFT function?' SELECT id, head, CONCAT(LEFT(story, 120), ' ...') AS bb, DATE_FORMAT(updated, '%d/%m/%y') as ud FROM maths ORDER BY id ");
How can I adapt this code, Experts, please, to say 'miss 4 characters and then begin the LEFT function?' SELECT id, head, CONCAT(LEFT(story, 120), ' ...') AS bb, DATE_FORMAT(updated, '%d/%m/%y') as ud FROM maths ORDER BY id ");
May 5, 2006 1 #2 TonyGroves Programmer Aug 13, 2003 2,389 IE How about: [tt] CONCAT(LEFT(SUBSTRING(story,4),120),'...') [/tt] Upvote 0 Downvote
May 5, 2006 #3 TonyGroves Programmer Aug 13, 2003 2,389 IE Sorry, the 4 should have been a 5, and you can also simplify it: [tt] CONCAT(SUBSTRING(story,5,120),'...') [/tt] Upvote 0 Downvote
Sorry, the 4 should have been a 5, and you can also simplify it: [tt] CONCAT(SUBSTRING(story,5,120),'...') [/tt]
May 5, 2006 Thread starter #4 sinbadly Technical User Mar 16, 2006 126 GB Terrific, Tony. Thanks very much indeed. Cheers. Upvote 0 Downvote