Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String to long to fit - limit on aggregate functions ?
Message
De
23/07/2007 07:56:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
22/07/2007 15:54:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01242567
Message ID:
01242712
Vues:
16
>>>Thanks for going to the trouble of doing this. At Cetin's suggestion I removed the lines referencing memo fields and then it worked. So you are saying the problem isn't with the SELECT syntax so there must be something happening in the data in those memo fields - can't figure out how that would translate to a "String too long to fit" error ...
>>
>>And I even didn't notice that I have MAX(Memo) in the query! No matter that I create a cursor :-(. Hmmm, not good for me.
>
>Well, today my colleague claims the select works for him. I like the CAST(null as memo) thing to get a blank memo field in the result set. But with data being pulling into the cursor that you constructed by hand I get the error. Odd. I am going to have to see him run it to believe it <g>

Well you can show him it wouldn't work with a shorter sample like:

select cast(max(alltrim(notes)) as memo) from _samples+'data\employee'

Or:
CREATE CURSOR myTest (dummy m)
INSERT INTO myTest VALUES ("this is short indeed")

select cast(max(alltrim(dummy)) as memo) from myTest

INSERT INTO myTest VALUES (REPLICATE('a',256))
select cast(max(alltrim(dummy)) as memo) from myTest
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform