Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select SQL Problem
Message
De
03/01/2001 03:44:53
 
 
À
02/01/2001 09:36:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00458422
Message ID:
00458817
Vues:
15
>Cemal,
>
>>SELECT SUBSTR(partno,ATC("-",partno,1)+1,ATC("-",partno,2)-ATC("-",partno,1)-1) from plan
>>
>>Its returns
>>ABC
>>QWE
>
>The width of the column established by the SQL SELECT is being determined by the calculation of the first record. Try adding a PADR around the expression:
SELECT <b>PADR(</b> SUBSTR(partno,ATC("-",partno,1)+1, ;
>  ATC("-",partno,2)-ATC("-",partno,1)-1) <b>,15)</b> from plan
Hi David,
Thank you.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform