Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql column not wide enough.
Message
From
17/11/1998 15:17:09
 
 
To
17/11/1998 15:15:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00158450
Message ID:
00158465
Views:
22
>>>I want to have an SQL statement that will allow an IIF that can accept up to 2 digits.
>>>
>>>
>>>
>>>SELECT *, ;
>>> IIF( INLIST( nUserSecurityLevel, 1, 2, 3 ), nUserSecurityLevel+00, 99 ) AS ; nUserLvl ;
>>> FROM ;
>>> UserSecurity
>>>
>>>
>>>Excellent. Thank you for your 34 second response :).
>>>
>>>Dan
>>
>>Sorry about the blank post.. How would I handle it if the above used characters instead.
>>'A', 'B', 'C' and "ZZ".
>>
>>Dan
>
>'A ', 'B ', 'C ' and "ZZ"


SELECT IIF(condition=.T.,PADL(ALLT(field),2),"ZZ") AS newfield.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform