Ask a Question related to Coldfusion Database Access, Design and Development.
-
d088 #1
Limit the Number of Characters Returned
I am running into a problem with a dynamically created Select Box being too
wide due to the names included in it. How can I limit the length of the
characters returned to keep the length of the select box to a certain size?
d088 Guest
-
How to limit # of rows returned from query
I am looking at setting a limit to the number of rows returned on some of my queries. I was looking at doing something like: <cfoutput... -
Limit Data returned to table
Hi I have a number of large fields of data being returned and would like to limit the amount of each one that is put to my table for viewing.... -
#25544 [Ver->Bgs]: Only 255 characters returned from varchar field
ID: 25544 Updated by: abies@php.net Reported By: snick at getart dot ru -Status: Verified +Status: ... -
#25544 [Opn->Bgs]: Only 255 characters returned from varchar field
ID: 25544 Updated by: iliaa@php.net Reported By: snick at getart dot ru -Status: Open +Status: Bogus... -
#25544 [NEW]: Only 255 characters returned from varchar field
From: snick at getart dot ru Operating system: Windows 2003 Server PHP version: 4.3.2 PHP Bug Type: MSSQL related Bug... -
TurboMini #2
Re: Limit the Number of Characters Returned
two ways. 1.) limit the size of the elements in your SQL query Left(value,25)
for SQL Server or Access, but differs for other databases 2.) limit the size
of the elements when you write the select box with CF: <option
value='#value#'>#Left(value,25)#</option>
TurboMini Guest
-
Unregistered #3
Re: Limit the Number of Characters Returned
The easiest way is to handle the issue on the query on your CF code. If your field needs to be trimmed on the right or left you can use the following syntax:
Remove empty spaces on the left side of the returned data of a field
SELECT field1, LTRIM(field2) as field2
FROM yourtable
Remove empty spaces on the rigth side of the returned data of a field
SELECT field1, RTRIM(field2) as field2
FROM yourtableUnregistered Guest



Reply With Quote

