Is there anyway within a SQL query to only return the first 100 characters of a text field not the full field that could be much larger?
have a look here. HTH Rob
Where? - no link!
Here link:
http://www.php.net/manual/en/function.count-chars.php
Norman
Thanks but I wanted this done within a query. Got a solution tho' :
$query = "select (LEFT(FIELD_NAME_HERE,20)) from TABLE_NAME";
Thanks for your suggestion.
I just noticed you wanted an SQL query, not PHP - sorry for being so hasty.
Sorry forgot the link here it is http://www.mysql.com/doc/en/String_functions.html
Again, sorry about that. However it is still a case of RTFM 😉 Rob