Click to See Complete Forum and Search --> : Limiting amount of text retrieved from column


Shaolin
02-15-2009, 03:25 PM
Hi Guys

Is there a way I can limit the amount of text I recieve from a certain column in DB ? I only want to display the first 100 characters of a 300char block of text.

NogDog
02-15-2009, 03:40 PM
In MySQL you can use the SUBSTR[ING]() function (http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_substring). Most other DBMS's will have a function with the same or similar name/functionality.