Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql column not wide enough.
Message
From
17/11/1998 15:07:33
George Lee
Microcomputer Engineering Services, Llc
Huntington Beach, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Sql column not wide enough.
Miscellaneous
Thread ID:
00158450
Message ID:
00158450
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform