Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql column not wide enough.
Message
From
17/11/1998 15:09:21
 
 
To
17/11/1998 15:07:33
George Lee
Microcomputer Engineering Services, Llc
Huntington Beach, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00158450
Message ID:
00158451
Views:
18
>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, 99 ) AS ; nUserLvl ;
> FROM ;
> UserSecurity
>
>If the first row evaluates to a 1, 2, or 3, then I will get an overflow when the IIF evaluates to a 99 later. How can I force the column width to be 2 digits and avoid this problem.
>
>TIA
>
>Dan
SELECT   *,  ;
 IIF( INLIST( nUserSecurityLevel, 1, 2, 3 ), nUserSecurityLevel+00, 99 ) AS ;                    nUserLvl ;
 FROM ;
 UserSecurity
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform