Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql column not wide enough.
Message
De
17/11/1998 15:09:21
 
 
À
17/11/1998 15:07:33
George Lee
Microcomputer Engineering Services, Llc
Huntington Beach, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00158450
Message ID:
00158451
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform