Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL statement to combine one-to-many
Message
From
09/11/2001 03:11:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/11/2001 17:39:09
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00578503
Message ID:
00579534
Views:
27
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform