Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL statement to combine one-to-many
Message
De
09/11/2001 03:11:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/11/2001 17:39:09
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00578503
Message ID:
00579534
Vues:
28
>Cetin
>
>>>Are you sure making string longer than 255 would make it a memo in SQL ? <<
>
>C(254) is the max char field size in a VFP table or cursor, so a string longer than that will be a memo.
>
>If the first row has a calculated field length <255 then it may be expressed as a character field with truncation for any subsequent fields that are longer. Hence the PADR().
>
>Regards
>
>JR

John,
I accidentally happen to know max char field size. I was referring to :
*---Make sure string>255 characters so it will be a memo field in SQL
IF LEN(lcString)<255
 lcString=PADR(lcString,255)
ENDIF

RETURN lcString
I just couldn't get how this would work. W/o structure of SQL is not prepared as 'memo' for the field my trials return 'String too long to fit'. What am I doing wrong ? Would you provide a sample. Thanks.
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