Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Speegs #1
ASP/SQL Query Recordset up to 200 characters?
Is it possible through SQL to query a recordest lets say a memo description feild for lets say only the first 200 characters?
Or
To somehow control this through CSS?
Please advise.
Speegs
Speegs Guest
-
Problems with Recordset (Query) in Dreamweaver BindingsPanel
Coldfusion Gurus- I keep getting this error when I try to make a connection to my database using the Dreamweaver Bindings Panel: "There are no... -
recordset query not working
hello, im using asp and dreamweavers automated features. the following query works select * from table where dateexp >= now so expired... -
Getting 0 recordset in MS Access Query
Hi, I'm trying to do a sql query on a date column, like this SELECT * FROM WHERE Call_Date = #04/01/2004# No errors in the statement, but 0... -
using Command to set Parameters and Recordset to retrive the Query
Hi guys, withou using SP, I want to be able to add a Parameter to the SQL Query and retrive the Recordset so I can use the Paging property under... -
PHP & Simple Recordset Query
Why can't I open the simple dialog box on recordset queries with PHP? It works with ASP but I can open a blank PHP page in a Blank site and still get... -
webshorts #2
Re: ASP/SQL Query Recordset up to 200 characters?
The easiest way is to simply pull the first 200 characters using VBScript:
<%= Left(yourRecordset('yourMemoField'), 200) %>
That would do it :)
webshorts Guest
-
Speegs #3
Re: ASP/SQL Query Recordset up to 200 characters?
Thanks Daniel, it worked like a charm.
What is the significance of left? Just curious, also would it be possible to tell it to stop at the first period or end of sentence it finds.
Speegs
Speegs Guest
-
DavidT #4
Re: ASP/SQL Query Recordset up to 200 characters?
Actually, you could do this in the query even easier (well, the same way at
least)
SELECT left(yourFirld,200) as 'myMemo'...
that way you don't have to deal with it on the page. Of course this will
truncate the field for ALL records but that seems to be what you want. Look
up INSTR functions to stop at the 1st period or anything else.
Left syntax is "starting from the LEFT return the N number of characters
from the given field". It's one of the basic SQL commands or other
programming languages with string variables.
HTH
David
"Speegs" <webforumsuser@macromedia.com> wrote in message
news:d1bk4k$nfu$1@forums.macromedia.com...to tell it to stop at the first period or end of sentence it finds.> Thanks Daniel, it worked like a charm.
> What is the significance of left? Just curious, also would it be possible>
> Speegs
DavidT Guest



Reply With Quote

